-
Bug
-
Resolution: Duplicate
-
Major
-
None
-
Jenkins 2.x (also RC1)
- Just installed latest Jenkins 2.0 and creating simple Pipeline job.
- Adjust the job as parametrized build
- Define a string parameter "TAG" (default to "master")
- choose "Pipeline sscript from SCM" for the pipeline definition
- choose "Git" as SCM
- Select any valid Git URL (example: https://github.com/jenkinsci/job-dsl-plugin)
- Put ${TAG} to "Branches to build"
The job fails as following:
Started by user Thomas Lehmann > git rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url https://github.com/jenkinsci/job-dsl-plugin # timeout=10 Fetching upstream changes from https://github.com/jenkinsci/job-dsl-plugin > git --version # timeout=10 > git -c core.askpass=true fetch --tags --progress https://github.com/jenkinsci/job-dsl-plugin +refs/heads/*:refs/remotes/origin/* > git rev-parse origin/${TAG}^{commit} # timeout=10 > git rev-parse ${TAG}^{commit} # timeout=10 ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job. Finished: FAILURE
The variable TAG is not evaluated.
- duplicates
-
JENKINS-28447 CpsScmFlowDefinition does not resolve variables
- Resolved