File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
src/main/java/org/jenkinsci/plugins/github Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
1
package org .jenkinsci .plugins .github ;
2
2
3
3
import hudson .Plugin ;
4
+ import hudson .init .InitMilestone ;
4
5
import hudson .init .Initializer ;
5
6
import org .jenkinsci .plugins .github .config .GitHubPluginConfig ;
6
7
import org .jenkinsci .plugins .github .migration .Migrator ;
7
8
8
9
import javax .annotation .Nonnull ;
9
10
10
- import static hudson .init .InitMilestone .PLUGINS_PREPARED ;
11
- import static hudson .init .InitMilestone .PLUGINS_STARTED ;
12
11
import static org .apache .commons .lang3 .ObjectUtils .defaultIfNull ;
13
12
14
13
/**
@@ -30,10 +29,12 @@ public static void addXStreamAliases() {
30
29
}
31
30
32
31
/**
33
- * Launches migration after plugin already initialized.
32
+ * Launches migration after all extensions have been augmented as we need to ensure that the credentials plugin
33
+ * has been initialized.
34
34
* We need ensure that migrator will run after xstream aliases will be added.
35
+ * @see <a href="https://issues.jenkins-ci.org/browse/JENKINS-36446>JENKINS-36446</a>
35
36
*/
36
- @ Initializer (after = PLUGINS_PREPARED, before = PLUGINS_STARTED )
37
+ @ Initializer (after = InitMilestone . EXTENSIONS_AUGMENTED , before = InitMilestone . JOB_LOADED )
37
38
public static void runMigrator () throws Exception {
38
39
new Migrator ().migrate ();
39
40
}
You can’t perform that action at this time.
0 commit comments