Creates a new build for the selected BuildMaster application and sets the BUILDMASTER_PACKAGE_NUMBER script and environment variables.
Unlike the FreeStyle plugins, this script plugin can be used for both build and post build actions. The choice of executing this plugin as a build step or post build action will be largely dependent on how you import the build artifacts into BuildMaster:
If you have multiple Jenkins jobs all triggering a build for the same BuildMaster application check out the "Enable Deployable in BuildMaster" and "Copy Previous Build's Variables" options as a means to ensure that the new BuildMaster build picks up artifacts from only the Jenkins jobs that have build for its release.
Note that pipeline steps are unable to set variables directly so must be called in this format:
BUILDMASTER_PACKAGE_NUMBER = buildMasterCreatePackage(applicationId: '${BUILDMASTER_APPLICATION_ID}', packageNumber: '${BUILDMASTER_PACKAGE_NUMBER}', releaseNumber: '${BUILDMASTER_RELEASE_NUMBER}', deployToFirstStage: true, waitTillBuildCompleted: [printLogOnFailure: true])