Document shallow clone depth's effect on changesets#3970
Conversation
|
Thanks for documenting the behavior. I've confirmed the same behavior. I created a Pipeline job that shows the issue on the first build: The firstBuildChangelog extension should show the changes in the most recent commit. The only file changed in the most recent commit is I think this is a bug, but it is probably better to document the bug immediately and then fix the bug in a future release. Can you offer your opinion on what should be displayed as the changes for a repository that has been shallow cloned? Some scenarios to consider:
|
|
If the shallow clone depth is set to 2, then the changes list seems to only list the changes in the most recent commit. That might be a workaround until a fix is available. |
|
I am not sure if I'd consider it a bug. Looking at Git's behaviour concerning At least for my use case I think a better solution would be an option that uses |
I stumbled across an issue concerning the files shown in changesets. Since some date the changesets would list all files of the repository instead of only the changed ones. I tried looking for a recent change within the Jenkins codebase that might cause this issue and came across this comment. I realized I had made the same configuration change to reduce load.
This PR adds a note in the help text of the configuration parameter (I first started to write an issue, but since this is only a small change in the documentation, I followed the hint to just create a PR instead).
Testing done
I did not build the plugin to test this. As it is a minor documentation change, I am quite confident it works as expected. I am, however, not a native English speaker, so if the wording seems off, feel free to let me know.
Submitter checklist