Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Duplicate
-
None
-
-
git plugin 4.7.0 released 17 Mar 2021
Description
This looks like the same type of code-path issue described in https://issues.jenkins-ci.org/browse/JENKINS-41996
@Library('someGitLibrary') node { final scmVars = checkout(scm) // scmVars may have Git data from either the someGitLibrary or the scmVars }
Looks like its caused by https://github.com/jenkinsci/git-plugin/blob/master/src/main/java/hudson/plugins/git/GitSCM.java#L1282-L1317
Attachments
Issue Links
- duplicates
-
JENKINS-53346 GitSCM checkout returns same values on second different call
-
- Closed
-
- is blocked by
-
JENKINS-52378 Revision state returned by Git SCM step is incorrect
-
- Closed
-
Activity
Field | Original Value | New Value |
---|---|---|
Description |
This looks like the same type of code-path issue described in https://issues.jenkins-ci.org/browse/JENKINS-41996  {code:java} @Library('someGitLibrary') node { final scmVars = checkout(scm) // scmVars may have Git data from either the }{code} Looks like its caused by [https://github.com/jenkinsci/git-plugin/blob/master/src/main/java/hudson/plugins/git/GitSCM.java#L1282-L1317] |
This looks like the same type of code-path issue described in https://issues.jenkins-ci.org/browse/JENKINS-41996  {code:java} @Library('someGitLibrary') node { final scmVars = checkout(scm) // scmVars may have Git data from either the someGitLibrary or the scmVars }{code} Looks like its caused by [https://github.com/jenkinsci/git-plugin/blob/master/src/main/java/hudson/plugins/git/GitSCM.java#L1282-L1317] |
Component/s | scm-api-plugin [ 18054 ] | |
Component/s | git-plugin [ 15543 ] |
Assignee | Mark Waite [ markewaite ] |
Summary | checkout(scm) step can return wrong variables when used with a global library that is pulled from Git | checkout(scm) step can return wrong variables when used following another Git checkout |
Link |
This issue is blocked by |
Link |
This issue duplicates |
Released As | git plugin 4.7.0 released 17 Mar 2021 | |
Resolution | Duplicate [ 3 ] | |
Status | Open [ 1 ] | Closed [ 6 ] |