forked from geoffbullen/build-pipeline-plugin
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JENKINS-33591] Don't modify CauseAction's causes
The cause list is immutable as described in the comments of JENKINS-33467.
- Loading branch information
1 parent
3b4634e
commit d56ff03
Showing
1 changed file
with
4 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
d56ff03
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@noidi can you please take a look at https://issues.jenkins-ci.org/browse/JENKINS-33935 ; which I believe is regression from this change / needs a similar fix?
d56ff03
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@CloCkWeRX I took a quick glance, and that looks like a similar sort of problem, only there
Cause
s are being removed from aCauseAction
instead of being added. TheCause
list is now immutable, which is why the call toremove
fails withUnsupportedOperationException
.I'm not really familiar with the Build Pipeline Plugin or Jenkins in general (I've only learned enough to make this particular fix), but I think
filterOutUserIdCause
should return a newCauseAction
created with a new list ofCause
s, as I've done here, instead of modifying theCause
list of theCauseAction
it receives as an argument.