File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
src/main/java/org/jenkinsci/plugins/github Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -23,8 +23,6 @@ public class GitHubPlugin extends Plugin {
23
23
/**
24
24
* Launched before plugin starts
25
25
* Adds alias for {@link GitHubPlugin} to simplify resulting xml.
26
- * Expected milestone: @Initializer(before = PLUGINS_STARTED)
27
- * * @see #initializers()
28
26
*/
29
27
public static void addXStreamAliases () {
30
28
Migrator .enableCompatibilityAliases ();
@@ -35,19 +33,23 @@ public static void addXStreamAliases() {
35
33
* Launches migration after plugin already initialized.
36
34
* Expected milestone: @Initializer(after = PLUGINS_PREPARED)
37
35
*
38
- * @see #initializers ()
36
+ * @see #migrator ()
39
37
*/
40
38
public static void runMigrator () throws Exception {
41
39
new Migrator ().migrate ();
42
40
}
43
41
42
+ @ Override
43
+ public void start () throws Exception {
44
+ addXStreamAliases ();
45
+ }
46
+
44
47
/**
45
48
* We need ensure that migrator will run after xstream aliases will be added.
46
49
* Unclear how reactor will sort single methods, so bundle in one step.
47
50
*/
48
51
@ Initializer (after = PLUGINS_PREPARED , before = PLUGINS_STARTED )
49
- public static void initializers () throws Exception {
50
- addXStreamAliases ();
52
+ public static void migrator () throws Exception {
51
53
runMigrator ();
52
54
}
53
55
You can’t perform that action at this time.
0 commit comments