-
Bug
-
Resolution: Not A Defect
-
Major
-
None
I've recently updated a few jenkins plugins and I've noticed that the command that is issued when performing a `checkout scm` in a Jenkins pipeline is adding a `--no-tags` during a the `git fetch` operation, while in the past it was `git fetch --tags`.
This is preventing our tagging system from working properly.
Was this change implemented on purpose? Is there a way to pass a param to manually opt-in for the tags?
Thanks,
Gio
- relates to
-
JENKINS-67984 Jenkins Git plugin only checks out tags on existing repository
-
- Open
-
[JENKINS-45164] In jenkins pipeline a "checkout scm" now adds "--no-tags" instead of "--tags" for git projects
Assignee | Original: Mark Waite [ markewaite ] |
Resolution | New: Not A Defect [ 7 ] | |
Status | Original: Open [ 1 ] | New: Closed [ 6 ] |
Are you using the experimental update center? There was no recent change in tag fetching behavior in any of the full releases, though there may have been a change in the tag fetching behavior in the beta release, since it is now configuring itself by default to only fetch the refspec required for the current repository.
What plugin versions (git plugin and git client plugin) were you running prior to upgrade?
What plugin versions (git plugin and git client plugin) are you running after upgrade?
You can likely resolve the problem by modifying the configured pipeline job definition, or by adding the advanced clone behavior that enables fetching of tags.
You may also want to check if someone modified the multi-branch pipeline job definition by adding the advanced behavior which disables tag fetching.