Skip to content

(WIP) [JENKINS-20389] Merge commits trigger uneccessary builds when Include/Exclude regions are defined#326

Closed
MarkEWaite wants to merge 29 commits intojenkinsci:masterfrom
MarkEWaite:feature/merge-commits-include-regions
Closed

(WIP) [JENKINS-20389] Merge commits trigger uneccessary builds when Include/Exclude regions are defined#326
MarkEWaite wants to merge 29 commits intojenkinsci:masterfrom
MarkEWaite:feature/merge-commits-include-regions

Conversation

@MarkEWaite
Copy link
Contributor

Conflicts resolved that exist in #162 .

This fix may be necessary but is not sufficient. The case described in JENKINS-20389 will require changes to the git plugin to use the new APIs proposed by #162 (and included in this pull request). The new API's

aelsabbahy and others added 28 commits March 6, 2015 17:44
similar to git diff --name-only, so that it can be used to
accurately identify changed paths for include/exclude regions.
similar to git diff --name-only, so that it can be used to
accurately identify changed paths for include/exclude regions.
JGit does not support Octopus merge
JGit does not seem to have an implementation of an octopus merge, so
the test falls back to performing the octopus merge with command line
git.
Tests used to show places where the behavior is different between
command line git and JGit implementation of showChangedPaths, and
where the results are unexpected for both implementations.
The showChangedPaths() method for CliGitAPIImpl returns 
duplicates in the list, while the JGit implementation only 
returns the matching items
One case where the method is not consistent is documented
inside the assertion.
Rename to match the wider use
* Fix cli empty and duplicate responses
* Fix jGit diff to use merge base for the start commit
@MarkEWaite MarkEWaite closed this Sep 4, 2018
@MarkEWaite MarkEWaite deleted the feature/merge-commits-include-regions branch September 4, 2018 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants