-
Notifications
You must be signed in to change notification settings - Fork 165
Fix migrating settings from plugin 0.20 to 0.21+ #46
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
Conversation
@cloudbeesci code review, please 😄. |
cc @jhoblitt code review, please. |
@Override | ||
public void onLoaded() { | ||
try { | ||
Jenkins instance = Jenkins.getInstance(); |
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.
Need to fix indenting.
645d36d
to
fd3bb38
Compare
Fixed indenting and amended commit. |
Thank you for a pull request! Please check this document for how the Jenkins project handles pull requests |
import java.util.Set; | ||
import java.util.logging.Logger; | ||
|
||
import static java.util.logging.Level.*; |
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.
Looks like this was the only file importing java.util.logging.Level.*
fixes [JENKINS-29473]
fd3bb38
to
76c9769
Compare
@jhoblitt I went ahead and removed checking for an empty string. Once that verifies I'm going to do another plugin release as 0.21.2. This problem will quickly exacerbate as more users attempt to upgrade so I want the patch to go out quick. There's been one duplicate issue created about it in JIRA. Thanks for your review 😄. If there's other code style changes or improvements we could always open a new pull request improving the style or length of lines. I'm open to aesthetic and cleanup changes. |
I have released plugin 0.21.2 to address this migration issue as quickly as possible. |
fixes JENKINS-29473. Authorization breaks when migrating from plugin 0.20 or below to 0.21 and above. This is due to OAuth scopes not existing in prior configurations. This patch fixes that.