I created a new job with the same settings, except:
- the original job (with the issues) had GIT settings to ave disk space, ase described in the thread "git plugin, use --single-branch option to save disk space?" on this list on may 26 2023
- the new job had default GIT options
With the new job, the second issue (all files listed as added) is not present.
So it is a bug in git-client with the nondefault options?
For the record, the different settings in the old job regarding git are:
- Advanced / "Refspec" is not blank (as per default), but: +refs/heads/my_branch:refs/remotes/origin/ my_branch
- "Additional Behaviours" has an "Advanced clone behaviours" item with values:
"Honor refspec on initial clone" enabled
"Shallow clone" enabled
> Shallow clone causes git to request only the depth of commits specified. Changelog history is computed from the history in the local copy of the repository. If the history in the local copy of the repository is shallow, then it is entirely possible that the history does not exist in that local copy.
Thanks, in between I created another project, that was the same as the original (with the history issue), but without the "Shallow clone" option.
Now the changed file list is as expected, "correct". Only listing the actually changed versions between commits.
Regards,
David Balažic
Lead engineer Endava
From: jenkins...@googlegroups.com <jenkins...@googlegroups.com>
On Behalf Of Mark Waite
Sent: Wednesday, 5 July 2023 02:51
To: Jenkins Users <jenkins...@googlegroups.com>
Subject: Re: git job weirdness (in Changes)
CAUTION - EXTERNAL EMAIL
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/bc75a2c6-5ca8-40dd-9ea4-e8d0edd9d13an%40googlegroups.com.