-
Improvement
-
Resolution: Not A Defect
-
Major
-
jenkins v2.7.1
git-plugin v2.5.2
I created a Pipeline project to build a Git project based on it's tag.
node {
git branch: 'refs/tags/VMAccess-1.4.1.0', url: 'https://github.com/azure/azure-linux-extensions'
}
The console output contains the following data.
> git rev-parse refs/remotes/origin/refs/tags/VMAccess-1.4.1.0^
{commit} # timeout=10> git rev-parse refs/remotes/origin/origin/refs/tags/VMAccess-1.4.1.0^{commit}
# timeout=10
> git rev-parse origin/refs/tags/VMAccess-1.4.1.0^
The correct rev-parse should be refs/tags/VMAccess-1.4.1.0, but that value is never tried by the plugin. (The value refs/remotes/origin/refs/tags/VMAccess-1.4.1.0 may also be valid.) I tried to influence the refspec, but setting the refspec key in the git command, but this had no effect.
I create a Freestyle project, and set the branch to refs/tags/VMAccess-1.4.1.0. The project built successfully.
The console output contains the following data.
> git rev-parse refs/tags/VMAccess-1.4.1.0^{commit}
# timeout=10
> git rev-parse refs/remotes/origin/refs/tags/VMAccess-1.4.1.0^
# timeout=10
Checking out Revision 97fb7b019946ef71f15e73881b761e4ba1933781 (refs/tags/VMAccess-1.4.1.0)
- duplicates
-
JENKINS-46207 git-plugin should support tags in multibranch pipeline configurations
-
- Closed
-
- relates to
-
JENKINS-34395 Support for building tags
-
- Closed
-
- links to
[JENKINS-37050] Pipeline Job Cannot Checkout Git Tag
Description |
Original:
I created a Pipeline project to build a Git project based on it's tag. node { git branch: 'refs/tags/VMAccess-1.4.1.0', url: 'https://github.com/azure/azure-linux-extensions' } The console output contains the following data. > git rev-parse refs/remotes/origin/refs/tags/VMAccess-1.4.1.0^{commit} # timeout=10 > git rev-parse refs/remotes/origin/origin/refs/tags/VMAccess-1.4.1.0^{commit} # timeout=10 > git rev-parse origin/refs/tags/VMAccess-1.4.1.0^{commit} # timeout=10 The correct rev-parse should be refs/tags/VMAccess-1.4.1.0, but that value is never tried by the plugin. (The value refs/remotes/origin/refs/tags/VMAccess-1.4.1.0 may also be valid.) I tried to influence the refspec, but setting the refspec key in the git command, but this had no effect. I create a Freestyle project, and set the branch to refs/tags/VMAccess-1.4.1.0. The project build successfully. The console output contains the following data. > git rev-parse refs/tags/VMAccess-1.4.1.0^{commit} # timeout=10 > git rev-parse refs/remotes/origin/refs/tags/VMAccess-1.4.1.0^{commit} # timeout=10 Checking out Revision 97fb7b019946ef71f15e73881b761e4ba1933781 (refs/tags/VMAccess-1.4.1.0) |
New:
I created a Pipeline project to build a Git project based on it's tag. node { git branch: 'refs/tags/VMAccess-1.4.1.0', url: 'https://github.com/azure/azure-linux-extensions' } The console output contains the following data. > git rev-parse refs/remotes/origin/refs/tags/VMAccess-1.4.1.0^{commit} # timeout=10 > git rev-parse refs/remotes/origin/origin/refs/tags/VMAccess-1.4.1.0^{commit} # timeout=10 > git rev-parse origin/refs/tags/VMAccess-1.4.1.0^{commit} # timeout=10 The correct rev-parse should be refs/tags/VMAccess-1.4.1.0, but that value is never tried by the plugin. (The value refs/remotes/origin/refs/tags/VMAccess-1.4.1.0 may also be valid.) I tried to influence the refspec, but setting the refspec key in the git command, but this had no effect. I create a Freestyle project, and set the branch to refs/tags/VMAccess-1.4.1.0. The project built successfully. The console output contains the following data. > git rev-parse refs/tags/VMAccess-1.4.1.0^{commit} # timeout=10 > git rev-parse refs/remotes/origin/refs/tags/VMAccess-1.4.1.0^{commit} # timeout=10 Checking out Revision 97fb7b019946ef71f15e73881b761e4ba1933781 (refs/tags/VMAccess-1.4.1.0) |
Assignee | Original: Mark Waite [ markewaite ] |
Priority | Original: Minor [ 4 ] | New: Major [ 3 ] |
Labels | Original: git pipeline tags workflow | New: git pipeline tags |
Remote Link | New: This issue links to "cb details (Web Link)" [ 17305 ] |
Labels | Original: git pipeline tags | New: cloudbees-internal-pipeline git pipeline tags |
Component/s | New: pipeline [ 21692 ] |
Link |
New:
This issue relates to |
Issue Type | Original: Bug [ 1 ] | New: Improvement [ 4 ] |
Link |
New:
This issue duplicates |