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

8 views
Skip to first unread message

vinita sanghi

unread,
Dec 2, 2019, 6:23:33 AM12/2/19
to Jenkins Developers

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
Reply all
Reply to author
Forward
0 new messages