The Release Staging process exposes the following variables, which can be later used inside the build job. The variables are exposed when the release build ends.
RT_RELEASE_STAGING_VERSION - Contains the release version configured for the release.
RT_RELEASE_STAGING_NEXT_VERSION - Contains the next development version configured for the release.
RT_RELEASE_STAGING_SCM_TAG - Contains the SCM tag name configured for the release.
RT_RELEASE_STAGING_SCM_BRANCH - Contains the SCM branch name configured for the release.