Skip to content

Remove upper bounds from gitVersionAtLeast#1805

Merged
MarkEWaite merged 1 commit intojenkinsci:masterfrom
jglick:gitVersionAtLeast
Sep 13, 2025
Merged

Remove upper bounds from gitVersionAtLeast#1805
MarkEWaite merged 1 commit intojenkinsci:masterfrom
jglick:gitVersionAtLeast

Conversation

@jglick
Copy link
Member

@jglick jglick commented Sep 8, 2025

While testing jenkinsci/workflow-cps-plugin#1080 with Git 2.51.0 (built from sources locally) I noticed a warning also seen in CI

$ git --version
   3.520 [id=57]	WARNING	j.plugins.git.GitSampleRepoRule#gitVersionAtLeast: Unexpected git minor version 51 parsed from 'git version 2.51.0', field:'51'

This seems senseless. What is OK about 49 but not OK about 51?

Originally introduced in 71fe2d7 and then relaxed somewhat in dff8d14 (#690).

@jglick jglick requested a review from a team as a code owner September 8, 2025 17:59
@github-actions github-actions bot added the tests Automated test addition or improvement label Sep 8, 2025
@jglick jglick requested a review from MarkEWaite September 9, 2025 22:43
Copy link
Contributor

@MarkEWaite MarkEWaite left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Change is correct and makes good sense. I never thought we would reach command line git 2.50 when this code was originally created. I was wrong.

@MarkEWaite MarkEWaite merged commit 12cb5a3 into jenkinsci:master Sep 13, 2025
14 of 17 checks passed
@jglick jglick deleted the gitVersionAtLeast branch September 16, 2025 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tests Automated test addition or improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants