Details
-
Type:
Bug
-
Status: Closed (View Workflow)
-
Priority:
Critical
-
Resolution: Duplicate
-
Component/s: git-plugin
-
Labels:
-
Environment:Jenkins 2.1
-
Similar Issues:
Description
I try to create a "Pipeline" with string parameter "TAG_NAME" and "Pipeline script from SCM" with "Branch Specifier" = "refs/tags/${TAG_NAME}" (I attached job file to this issue).
But this don't work (looks like TAG_NAME is not pass to environment variable) with error like:
Started by user Artem V. Navrotskiy > git rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url https://github.com/bozaro/octobuild.git # timeout=10 Fetching upstream changes from https://github.com/bozaro/octobuild.git > git --version # timeout=10 using .gitcredentials to set credentials > git config --local credential.username bozaro # timeout=10 > git config --local credential.helper store --file=/tmp/git5054038889952082299.credentials # timeout=10 > git -c core.askpass=true fetch --tags --progress https://github.com/bozaro/octobuild.git +refs/heads/*:refs/remotes/origin/* > git config --local --remove-section credential # timeout=10 > git rev-parse refs/tags/${TAG_NAME}^{commit} # timeout=10 > git rev-parse refs/remotes/origin/refs/tags/${TAG_NAME}^{commit} # timeout=10 > git rev-parse refs/tags/${TAG_NAME}^{commit} # timeout=10 ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job. Finished: FAILURE
But on Jenkins 1.X I can use parameters in branch specifier.
Also, this issue can not be work around by Jenkinsfile content.
Attachments
Issue Links
- duplicates
-
JENKINS-28447 CpsScmFlowDefinition does not resolve variables
-
- Resolved
-
- is related to
-
JENKINS-34520 Can't use Jenkinsfile for build git tags
-
- Resolved
-
Activity
Field | Original Value | New Value |
---|---|---|
Link |
This issue is related to |
Labels | Jenkinsfile | 2.0 2.1 Jenkinsfile |
Assignee | Mark Waite [ markewaite ] |
Attachment | support_2016-05-23_11.09.08.zip [ 32776 ] |
Priority | Minor [ 4 ] | Critical [ 2 ] |
Summary | Can't use Pipeline Parameter in Branch Specifier on Jenkins 2.0/2.1 | Can't use Pipeline Parameter in Branch Specifier on Jenkins 1.651.2/2.0-2.6 |
Workflow | JNJira [ 170685 ] | JNJira + In-Review [ 183999 ] |
Link |
This issue duplicates |
Resolution | Duplicate [ 3 ] | |
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Duplicate [ 3 ] | |
Status | Resolved [ 5 ] | Reopened [ 4 ] |
Labels | 2.0 2.1 Jenkinsfile | 2.0 2.1 Jenkinsfile wortkflow |
Labels | 2.0 2.1 Jenkinsfile wortkflow | 2.0 2.1 Jenkinsfile pipeline wortkflow |
Resolution | Duplicate [ 3 ] | |
Status | Reopened [ 4 ] | Resolved [ 5 ] |
Comment |
[ Just ran into this when nearly all of the migration from freestyle jobs to pipelines was done... Why is this working in freestyle jobs, but not with pipelines?! It's such a joke that I have to apply a workaround for nearly every feature the I want to migrate to pipelines! That destroys the whole usability of pipelines ] |
Status | Resolved [ 5 ] | Closed [ 6 ] |
Plugin versions