-
Bug
-
Resolution: Duplicate
-
Blocker
-
None
Hi,
For a Pipeline job, I have a parameter named BRANCH. I am using ${BRANCH} under Branches to build of Pipeline Script from SCM .While executing the job, I am passing my branch name in BRANCH. But Jenkins is not able to use it. I am getting below error.
> /usr/bin/git config --local --remove-section credential # timeout=10 > /usr/bin/git rev-parse origin/${BRANCH}^{commit} # timeout=10 > /usr/bin/git rev-parse ${BRANCH}^{commit} # timeout=10 ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job. Finished: FAILURE
- duplicates
-
JENKINS-42971 Pipeline script from SCM does not expand build parameters/env variables for lightweight checkouts
- Resolved