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

[FIXED JENKINS-38347] Use Initializer levels. #139

Merged
merged 3 commits into from
Sep 20, 2016

Conversation

KostyaSha
Copy link
Member

@KostyaSha KostyaSha commented Sep 19, 2016

- migrator: Don't throw NPE because Descriptor wasn't ready.
- aliases: user annotation initializer.
@KostyaSha
Copy link
Member Author

KostyaSha commented Sep 19, 2016

@lanwen @atanasenko for review

@@ -21,21 +24,17 @@
* Launched before plugin starts
* Adds alias for {@link GitHubPlugin} to simplify resulting xml
*/
public static void init() {
@Initializer(before = PLUGINS_STARTED)
Copy link
Member Author

Choose a reason for hiding this comment

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

level needs to be checked

Copy link
Member Author

Choose a reason for hiding this comment

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

Added workaround to ensure order

Signed-off-by: Kanstantsin Shautsou <kanstantsin.sha@gmail.com>
@@ -21,25 +24,31 @@
* Launched before plugin starts
* Adds alias for {@link GitHubPlugin} to simplify resulting xml
*/
public static void init() {
// @Initializer(before = PLUGINS_STARTED)
Copy link
Member

Choose a reason for hiding this comment

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

?

Copy link
Member

Choose a reason for hiding this comment

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

can be removed i think

Copy link
Member Author

Choose a reason for hiding this comment

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

Shows real level of this step, can move to javadoc.

Copy link
Member Author

Choose a reason for hiding this comment

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

I kept it just to not start thinking in future what was the right level.

Copy link
Member

Choose a reason for hiding this comment

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

move it to javadoc plz - now it looks like a forgotten block of code

Copy link
Member Author

Choose a reason for hiding this comment

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

done

@atanasenko
Copy link

+1

@lanwen lanwen merged commit cb7525c into jenkinsci:master Sep 20, 2016
@lanwen
Copy link
Member

lanwen commented Sep 20, 2016

thanks!

@atanasenko
Copy link

Thanks guys!

pdunnavant pushed a commit to 4INGS/github-plugin that referenced this pull request Oct 29, 2016
* [FIXED JENKINS-38347] Use Initializer levels.

- migrator: Don't throw NPE because Descriptor wasn't ready.
- aliases: user annotation initializer.

* Ensure execution order.

Signed-off-by: Kanstantsin Shautsou <kanstantsin.sha@gmail.com>

* Move to javadoc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants