-
Notifications
You must be signed in to change notification settings - Fork 393
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
Conversation
- migrator: Don't throw NPE because Descriptor wasn't ready. - aliases: user annotation initializer.
@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) |
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.
level needs to be checked
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.
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) |
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.
?
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.
can be removed i think
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.
Shows real level of this step, can move to javadoc.
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.
I kept it just to not start thinking in future what was the right 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.
move it to javadoc plz - now it looks like a forgotten block of code
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.
done
+1 |
thanks! |
Thanks guys! |
* [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
https://issues.jenkins-ci.org/browse/JENKINS-38347
This change is![Reviewable](https://camo.githubusercontent.com/23b05f5fb48215c989e92cc44cf6512512d083132bd3daf689867c8d9d386888/68747470733a2f2f72657669657761626c652e696f2f7265766965775f627574746f6e2e737667)