Jenkins Credentials not retained on plugin upgrade when underlying package is renamed

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Jenkins Credentials not retained on plugin upgrade when underlying package is renamed

vinita sanghi

We are using Cloudbees plugin to extend Jenkins Credentials and include our own entry point. We renamed the package and now on a plugin upgrade the earlier credentials are not retained. Tried below:

//Retain backward compatibility
        @Initializer(before = InitMilestone.PLUGINS_STARTED)
        public static void createAliases() {        
            Items.XSTREAM2.addCompatibilityAlias("old class name", new name); 
}
Doesn't work

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/0fbca941-c9fc-489f-ae20-b54fba1df254%40googlegroups.com.