in Jenkins' section Pipeline, I want to set branch of the repository where Jenkinsfile resides to the value of a job's parameter (BRANCH here).
But the parameter, although set, is not replaced with its value.
This should work, however: when I click on the questioning mark besides "Branches to build", the docs shows the possibility to supply the branch name as a variable. . Could you tell me what should I do better, please?
There was an issue reported similar to this.
Refer to the following JIRA for more info. https://issues.jenkins.io/browse/JENKINS-42971
To get yours working you need to do the following: