diff --git a/src/main/java/org/jenkinsci/plugins/github/GitHubPlugin.java b/src/main/java/org/jenkinsci/plugins/github/GitHubPlugin.java index 48f1341a4..4abc82a1a 100644 --- a/src/main/java/org/jenkinsci/plugins/github/GitHubPlugin.java +++ b/src/main/java/org/jenkinsci/plugins/github/GitHubPlugin.java @@ -1,14 +1,13 @@ package org.jenkinsci.plugins.github; import hudson.Plugin; +import hudson.init.InitMilestone; import hudson.init.Initializer; import org.jenkinsci.plugins.github.config.GitHubPluginConfig; import org.jenkinsci.plugins.github.migration.Migrator; import javax.annotation.Nonnull; -import static hudson.init.InitMilestone.PLUGINS_PREPARED; -import static hudson.init.InitMilestone.PLUGINS_STARTED; import static org.apache.commons.lang3.ObjectUtils.defaultIfNull; /** @@ -30,10 +29,12 @@ public static void addXStreamAliases() { } /** - * Launches migration after plugin already initialized. + * Launches migration after all extensions have been augmented as we need to ensure that the credentials plugin + * has been initialized. * We need ensure that migrator will run after xstream aliases will be added. + * @see