JENKINS-70331: Always honor useExistingAccountWithSameEmail#1382
JENKINS-70331: Always honor useExistingAccountWithSameEmail#1382reddwarf69 wants to merge 1 commit intojenkinsci:masterfrom
Conversation
useExistingAccountWithSameEmail makes sense on its own, independently of how a new account may be created if required.
|
My understanding is that the only test failing is https://github.com/jenkinsci/git-plugin/pull/1382/checks?check_run_id=10352017446, and that it is unrelated to this change. Am I right? |
Yes, that is correct. When tests run in parallel (as they do on ci.jenkins.io) there may be times when two tests are making a change to the git global configuration. Command line git locks the global configuration file (as it should) when it is being modified. I'll run the job again after my current tasks preparing the git plugin 5.0.0 release are complete. Git client plugin 4.0.0 has released. Git plugin 5.0.0 release process is running now. |
useExistingAccountWithSameEmail makes sense on its own, independently of how a new account may be created if required.
JENKINS-70331 - Always honor useExistingAccountWithSameEmail
In general, I'm not convinced about the whole separation in
git-plugin/src/main/java/hudson/plugins/git/GitChangeSet.java
Line 443 in 756dc6d
And "createAccountBasedOnEmail" whould only affect "Creation if not found".
By having the two big branches the "Search" gets duplicated. I'm not trying to fix this here, but I am adding to one of the branches logic that is already in the other one and should IMHO have been in both.
Checklist
I don't think there is any doc change strictly required for this PR. But the docs regarding all this could, in general, be improved.
Types of changes
I guess this could potentially break for somebody? Not exactly sure how.