Whenever Buildinfo
is used in a step, a set of environment variables is automatically made available that can be used in your step.
Environment Variable | Description |
---|---|
res_<resource_name>_name | Name of the resource |
res_<resource_name>_buildName | The name of the build associated with this BuildInfo. |
res_<resource_name>_buildNumber | The number of the build associated with this BuildInfo. |
res_<resource_name>_targetRepo | When set by PromoteBuild, the name of a repository in Artifactory for the BuildInfo. |