The data that shall be passed to the hook instance.
There are the following two types of data that can be specified:
- Unmapped Data: Plain data strings that are passed as a set or list of data to the hook instance. Examples:
- echo foo
- echo @{project.version}
- echo foo,echo bar
- Mapped Data: Data consisting of a data key and a data value separated by =>. Those data will be passed as a map to the hook instance. Examples:
- method=>POST,url=>http://example.org/test
- method=>POST,url=>http://example.org/test,user=>username,password=>password
- method=>GET,url=>http://example.org/test/artifacts/@{project.artifactId}
It is always possible to pass multiple data values for both data types, mapped and unmapped data. Multiple data definitions are separated with commas as you can see in the above examples.
Variable expansion
It is also possible to use a limited set of variables that will be expanded prior to the hook execution (exactly before the hook is executed).
Variables are referenced with @{VAR_NAME}.
Currently the implementation provides the following variables that can be used (but this is subject to change):
- @{project.groupId}
- @{project.artifactId}
- @{project.version}