-
Notifications
You must be signed in to change notification settings - Fork 47
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
Prevent null pointer exception in docker workflow plugin #44
Conversation
3f49739
to
f97eac3
Compare
Most recent release of plugin bom
8ff45dc
to
940f99b
Compare
DockerImageExtractor.getDockerImagesUsedByJobFromAll expects a non-null job argument but the test environment on the master branch and on the test branch were both passing a null job. When the docker-workflow plugin is included in the test dependencies, then an implementation of the abstract method is used that expects the NonNull to be honored. It seems like this should have been detected by spotbugs, since the argument is annotated NonNull in the called method and is being passed a null value from this method. jenkinsci/bom#2439 is the issue that detected this implementation problem.
940f99b
to
7e99891
Compare
@rsandell this is ready for your review. It would be nice if the following pull requests were merged before this one. When this pull request is merged, I can include this plugin in the Jenkins plugin bill of materials. |
Please remind me on Monday to make a release unless someone makes a release before that 😊 |
Will do. Thanks very much for merging the change. I'll use an incremental build from the master branch of this plugin to run a final test of the inclusion in the plugin bill of materials. I won't start that evaluation test until the currently running plugin BOM tests are complete. |
@rsandell, the plugin bill of materials draft evaluation of the master branch incremental build was successful. Not a rush, but the next release of the dockerhub-notification will allow it to be added to the plugin bill of materials so that it will be tested in combination with other plugins. Let me know whenever it is released and I'll complete the changes on the plugin BOM. |
Prevent null pointer exception in docker workflow plugin
A method that expects a non-null
job
argument was being passed a nulljob
argument. Now returns an empty list when a nulljob
is passed.This will need to be released so that this plugin can be included in the Jenkins plugin bill of materials. More details are available at:
This pull request should be merged after the merge of:
Testing done
Confirmed that
DockerHubTriggerTest
fails before this change and passes after the change. Command is:Submitter checklist