Jesse Glick commented on Bug JENKINS-17680

Do you plan to work [on] that?

Not currently.

please let me know the outline of those ways

Probably something like

@Initializer(after=JOB_LOADED)
public static void upgradeAll() {
    for (AbstractProject p : Jenkins.getInstance().getAllItems(AbstractProject.class)) {
        try {
            ListenerImpl.getCopiers(p); // calls upgradeIfNecessary as a side effect
        } catch (IOException x) {
            Logger.getLogger(CopyArtifact.class.getName()).log(Level.WARNING, "could not upgrade configuration of " + p, x);
        }
    }
}

except you would also want to set a persisted flag in CopyArtifactPlugin so that this work is only done once, not after every startup.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply via email to