![]() CHANGE_TITLE For a multibranch project corresponding to some kind of change request, this will be set to the title of the change, if supported else unset. CHANGE_URL For a multibranch project corresponding to some kind of change request, this will be set to the change URL, if supported else unset. CHANGE_ID For a multibranch project corresponding to some kind of change request, this will be set to the change ID, such as a pull request number, if supported else unset. Some SCM sources may report more than one branch as a primary branch while others may not supply this information. BRANCH_IS_PRIMARY For a multibranch project, if the SCM source reports that the branch being built is a primary branch, this will be set to "true" else unset. ![]() ![]() The following variables are available to shell scripts BRANCH_NAME For a multibranch project, this will be set to the name of the branch being built, for example in case you wish to deploy to production from master but not from feature branches if corresponding to some kind of change request, the name is generally arbitrary (refer to CHANGE_ID and CHANGE_TARGET).
0 Comments
Leave a Reply. |