Skip to content

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

Merged
merged 1 commit into from
Jul 20, 2015

Conversation

samrocketman
Copy link
Member

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.

@samrocketman
Copy link
Member Author

@cloudbeesci code review, please 😄.

@samrocketman
Copy link
Member Author

cc @jhoblitt code review, please.

@Override
public void onLoaded() {
try {
Jenkins instance = Jenkins.getInstance();
Copy link
Member Author

Choose a reason for hiding this comment

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

Need to fix indenting.

@samrocketman samrocketman force-pushed the fix_migration_from_0.20 branch from 645d36d to fd3bb38 Compare July 19, 2015 20:26
@samrocketman
Copy link
Member Author

Fixed indenting and amended commit.

@jenkinsadmin
Copy link
Member

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.*;
Copy link
Member

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.*

@samrocketman samrocketman force-pushed the fix_migration_from_0.20 branch from fd3bb38 to 76c9769 Compare July 20, 2015 05:01
@samrocketman
Copy link
Member Author

@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.

@samrocketman samrocketman merged commit 76c9769 into master Jul 20, 2015
samrocketman added a commit that referenced this pull request Jul 20, 2015
@samrocketman samrocketman deleted the fix_migration_from_0.20 branch July 20, 2015 05:13
@samrocketman
Copy link
Member Author

I have released plugin 0.21.2 to address this migration issue as quickly as possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants