Additional Environment Variables BRANCH_NAME CHANGE_ID Supporting Pull Requests By default, Jenkins will not automatically re-index the repository for branch additions or deletions (unless using an Organization Folder), so it is often useful to configure a Multibranch Pipeline to periodically re-index in the configuration: Multibranch Pipelines expose additional information about the branch being built through the  env global variable, such as: Name of the branch for which this Pipeline is executing, for example  master . An identifier corresponding to some kind of change request, such as a pull request number Additional environment variables are listed in the Global Variable Reference. With the "GitHub" or "Bitbucket" Branch Sources, Multibranch Pipelines can be used for validating pull/change requests. This functionality is provided, respectively, by the plugin:github-branch- source[GitHub Branch Source] and plugin:cloudbees-bitbucket-branch-source[Bitbucket Branch Source] plugins. Please consult their documentation for further information on how to use those plugins. 47