I'm working with jenkins file pipeline and i want to show the hg branch name in the current build name ( instead of the build number ). I tried with this code: currentBuild.displayName = "${BRANCH_NAME}" but it returned null. Is there other solution ?