[JIRA] [git-plugin] (JENKINS-34126) Jenkins 2.x - Pipeline - variables from paramaetrized build not evaluated for Git
Title: Message Title Thomas Lehmann updated an issue Jenkins / JENKINS-34126 Jenkins 2.x - Pipeline - variables from paramaetrized build not evaluated for Git Change By: Thomas Lehmann * 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:{code}Started by user Thomas Lehmann > git rev-parse --is-inside-work-tree # timeout=10Fetching changes from the remote Git repository > git config remote.origin.url https://github.com/jenkinsci/job-dsl-plugin # timeout=10Fetching 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=10ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job.Finished: FAILURE{code}The variable TAG is not evaluated . Add Comment This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to
[JIRA] [git-plugin] (JENKINS-34126) Jenkins 2.x - Pipeline - variables from paramaetrized build not evaluated for Git
Title: Message Title Thomas Lehmann updated an issue Jenkins / JENKINS-34126 Jenkins 2.x - Pipeline - variables from paramaetrized build not evaluated for Git Change By: Thomas Lehmann * 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:{code}Started by user Thomas Lehmann Cloning the remote Git repositoryCloning repository https://github.com/jenkinsci/job-dsl-plugin > git init /var/jenkins_home/workspace/Foo@script # timeout=10Fetching upstream changes from https://github.com/jenkinsci/job rev - dsl parse - plugin > git - is - version # timeout=10 > git inside - c core.askpass=true fetch work - -tags --progress https://github.com/jenkinsci/job-dsl-plugin +refs/heads/*:refs/remotes/origin/* > git config remote.origin.url https://github.com/jenkinsci/job-dsl-plugin tree # timeout=10 > git config --add Fetching changes from the remote .origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 Git repository > git config remote.origin.url https://github.com/jenkinsci/job-dsl-plugin # timeout=10Fetching 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/${ GIT TAG }^{commit} # timeout=10 > git rev-parse ${ GIT TAG }^{commit} # timeout=10ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job.Finished: FAILURE{code} The variable TAG is not evaluated Add Comment This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265)
[JIRA] [git-plugin] (JENKINS-34126) Jenkins 2.x - Pipeline - variables from paramaetrized build not evaluated for Git
Title: Message Title Thomas Lehmann created an issue Jenkins / JENKINS-34126 Jenkins 2.x - Pipeline - variables from paramaetrized build not evaluated for Git Issue Type: Bug Assignee: Mark Waite Components: git-plugin Created: 2016/Apr/08 1:06 PM Environment: Jenkins 2.x (also RC1) Priority: Major Reporter: Thomas Lehmann 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