-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[JENKINS-45055] Fix all spotbugs #149
Conversation
I'm kinda stumped that this broke a test and because my machine refuses to run the tests I'm pretty much stuck |
Apparently the older version of script security just doesn't run right on my system and updating made the test run :/ |
@CheckForNull | ||
private final String scriptFilePath; | ||
@CheckForNull | ||
private final String scriptContent; | ||
@CheckForNull | ||
@SuppressFBWarnings(value = "SE_BAD_FIELD", justification = "EnvInjectEvaluatedGroovyScriptTest#testWorkaroundSecurity86 relies on the serialization of this object") |
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.
I'm not sure why we can't serialize this bit without Spotbugs complaining
@@ -49,7 +49,7 @@ public Environment setUp(AbstractBuild build, Launcher launcher, BuildListener l | |||
public static final class DescriptorImpl extends BuildWrapperDescriptor { | |||
@Override | |||
public String getDisplayName() { | |||
return null; | |||
return "SetEnvBuildWrapper"; |
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.
If you put a name, these wrappers will start appearing in the lists IIRC
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.
Hmm i guess i could set it to a blank name so spotbugs wont complain, would that be ok?
Encoding and display name changes may cause regressions. I still need to review it carefully, not including into the today;s release. |
Fix all remaining spotbugs in envinject