[JIRA] (JENKINS-58964) Git not considered modern SCM for git-3.11.0+

0 views
Skip to first unread message

ogondza@gmail.com (JIRA)

unread,
Aug 16, 2019, 7:00:05 AM8/16/19
to jenkinsc...@googlegroups.com
Oliver Gondža created an issue
 
Jenkins / Bug JENKINS-58964
Git not considered modern SCM for git-3.11.0+
Issue Type: Bug Bug
Assignee: Oliver Gondža
Components: git-plugin, workflow-cps-global-lib-plugin
Created: 2019-08-16 10:59
Environment: git-3.11.0
workflow-cps-global-lib:2.11
Labels: regression
Priority: Major Major
Reporter: Oliver Gondža

Innocently looking refactoring has caused git not to be considered a modern SCM implementation, until a correction in workflow-cps-global-lib-2.14.

If newer `git` is used with older `workflow-cps-global-lib`, git is legacy.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

ogondza@gmail.com (JIRA)

unread,
Aug 16, 2019, 7:03:02 AM8/16/19
to jenkinsc...@googlegroups.com
Oliver Gondža started work on Bug JENKINS-58964
 
Change By: Oliver Gondža
Status: Open In Progress

ogondza@gmail.com (JIRA)

unread,
Aug 16, 2019, 7:03:02 AM8/16/19
to jenkinsc...@googlegroups.com

ogondza@gmail.com (JIRA)

unread,
Aug 16, 2019, 7:03:02 AM8/16/19
to jenkinsc...@googlegroups.com

dnusbaum@cloudbees.com (JIRA)

unread,
Aug 19, 2019, 11:01:02 AM8/19/19
to jenkinsc...@googlegroups.com
Devin Nusbaum commented on Bug JENKINS-58964
 
Re: Git not considered modern SCM for git-3.11.0+

I think you have the order of operations backwards in your description, see this PR comment for details. Essentially, workflow-cps-global-lib 2.14 preceded git 3.11.0. Because of that, I'm not really sure how we could automatically catch this kind of thing in the future without specifically testing old versions of some plugins with new versions of others in the PCT.

o.v.nenashev@gmail.com (JIRA)

unread,
Sep 16, 2019, 9:20:03 AM9/16/19
to jenkinsc...@googlegroups.com
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

dnusbaum@cloudbees.com (JIRA)

unread,
Sep 16, 2019, 9:26:01 AM9/16/19
to jenkinsc...@googlegroups.com

Oleg Nenashev No, but I can try to release in the next few weeks. Note though that neither the git nor workflow-cps-global-lib PRs fix the problem, the fix in this case is to only run git 3.11.0 or newer along with workflow-cps-global-lib 2.14 or newer. If you run git 3.11.0 or newer with an older version of workflow-cps-global-lib, that is how you run into the issue.

mark.earl.waite@gmail.com (JIRA)

unread,
Sep 16, 2019, 9:56:03 AM9/16/19
to jenkinsc...@googlegroups.com

I believe this is resolved by using git plugin 3.12.0 or later. As far as understand from Oliver Gondža, the bug was in the git plugin and the fix is also in the git plugin.

mark.earl.waite@gmail.com (JIRA)

unread,
Sep 16, 2019, 9:56:04 AM9/16/19
to jenkinsc...@googlegroups.com
Change By: Mark Waite
Status: In Review Resolved
Resolution: Fixed

dnusbaum@cloudbees.com (JIRA)

unread,
Sep 16, 2019, 10:00:05 AM9/16/19
to jenkinsc...@googlegroups.com
Devin Nusbaum commented on Bug JENKINS-58964
 
Re: Git not considered modern SCM for git-3.11.0+

I think that Oliver Gondža thought that workflow-cps-global-lib was a compile scope dependency in git plugin, so that https://github.com/jenkinsci/git-plugin/pull/742 would enforce the dependency requirements for all users, but it is actually test scope, so 3.12.0 should be functionally the same as 3.11.0, and the only fix is to manually make sure you only use those versions with workflow-cps-global 2.14 or newer.

dnusbaum@cloudbees.com (JIRA)

unread,
Sep 16, 2019, 10:01:02 AM9/16/19
to jenkinsc...@googlegroups.com
Devin Nusbaum edited a comment on Bug JENKINS-58964
I think that [~olivergondza] thought that workflow-cps-global-lib was a compile scope dependency in git plugin, so that [ https://github.com/jenkinsci/git-plugin/pull/742 ] would enforce the dependency requirements for all users, [but it is actually test scope|https://github.com/jenkinsci/git-plugin/pull/742/files#r315197236], so 3.12.0 should be functionally the same as 3.11.0, and the only fix is to manually make sure you only use those versions of git plugin with workflow-cps-global -lib 2.14 or newer.

mark.earl.waite@gmail.com (JIRA)

unread,
Sep 16, 2019, 10:48:02 AM9/16/19
to jenkinsc...@googlegroups.com

Thanks for the clarification Devin Nusbaum. I think you're correct based on the comment in that pull request. Fix is to run git plugin 3.12.x with workflow-cps-global-lib 2.14 or newer.

mark.earl.waite@gmail.com (JIRA)

unread,
Oct 22, 2019, 9:32:02 PM10/22/19
to jenkinsc...@googlegroups.com
Mark Waite closed an issue as Fixed
 
Change By: Mark Waite
Status: Resolved Closed
Reply all
Reply to author
Forward
0 new messages