Skip to content
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

Switch parent POM to org.jenkins-ci:jenkins #76

Merged
merged 5 commits into from
Jun 20, 2022

Conversation

dwnusbaum
Copy link
Member

This library is currently configured to release to Maven central using Kohsuke's parent POM, but for the past 4 years or so, it has only been released as part of a Jenkins security fix directly to https://repo.jenkins-ci.org/ (note that in #63 we updated the README to explicitly discourage use of this library outside of Jenkins). This PR changes the parent POM to https://github.com/jenkinsci/pom so that we can release this library to https://repo.jenkins-ci.org/ under normal circumstances.

I will also file a PR to https://github.com/jenkins-infra/repository-permissions-updater to set up this libary.

Eventually I would like to turn https://github.com/jenkinsci-cert/script-security-plugin into a multi-module project with this library as one of the submodules, but I want to do things one step at a time.

  • Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or Jira
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Ensure you have provided tests - that demonstrates feature works or fixes the issue

@@ -579,7 +579,7 @@ public static Object checkedBinaryOp(Object lhs, int op, Object rhs) throws Thro
public static Object checkedComparison(Object lhs, final int op, Object rhs) throws Throwable {
if (lhs==null) {// bypass the checker if lhs is null, as it will not result in any calls that will require protection anyway
return InvokerHelper.invokeStaticMethod(ScriptBytecodeAdapter.class,
Ops.binaryOperatorMethods(op), new Object[]{lhs,rhs});
Ops.binaryOperatorMethods(op), new Object[]{null, rhs});
Copy link
Member Author

@dwnusbaum dwnusbaum Jun 20, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to note, this was for SpotBugs (LOAD_OF_KNOWN_NULL_VALUE or whatever it is...).

@dwnusbaum dwnusbaum merged commit 67c7335 into jenkinsci:master Jun 20, 2022
@dwnusbaum dwnusbaum deleted the change-parent-pom branch June 20, 2022 22:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants