Obtains the Release and Build numbers for the selected BuildMaster application from BuildMaster and injects the following environment variables into the build job:

If you do not use these values in your build steps there is no requirement to use this task.

Note: If you have multiple jobs all triggering builds on the same BuildMaster application this task will queue those jobs so that you cannot get two jobs triggering a build at the same time.

When used within pipeline script this wraps a block and injects the above variables. Note that the applicationId parameter can contain either the id or name of a BuildMaster application.

buildMasterWithApplicationRelease('TestApplication') {
  echo """
    Application id = $BUILDMASTER_APPLICATION_ID
    Release Number = $BUILDMASTER_RELEASE_NUMBER
    Build Number = $BUILDMASTER_BUILD_NUMBER
  """
}