You set the Jenkins to shut-down mode. In plugin directory, Then you rename the credential directory to credential.bak or whatever. Delete the existing credential.jpi and credentials.hpi. Copy the backup credentials.hpi to plugin directory and restart Jenkins. Tail the Jenkins.log as Jenkins restarts.
From: <[email protected]> on behalf of Prasu S <[email protected]> Reply-To: "[email protected]" <[email protected]> Date: Tuesday, February 21, 2017 at 11:24 AM To: Jenkins Users <[email protected]> Subject: Re: credential plugin disappears after Jenkins upgrade to 1.658 I have plugins directory back up , Can I copy the plugin from the backup or do I have to install different plugin version like 1.22. Please help. Appreciate any help. I see these errors in the log: *********************************** SEVERE: Failed Inspecting plugin D:\Build\Jenkins\apps\jenkins\jenkins_home\plugins\credentials.jpi java.io.IOException: Failed to expand D:\Build\Jenkins\apps\jenkins\jenkins_home\plugins\credentials.jpi at hudson.ClassicPluginStrategy.explode(ClassicPluginStrategy.java:532) at hudson.ClassicPluginStrategy.createPluginWrapper(ClassicPluginStrategy.java:167) at hudson.PluginManager$1$3$1.run(PluginManager.java:288) at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282) at jenkins.model.Jenkins$8.runTask(Jenkins.java:958) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) Caused by: Problem creating zip: null at org.apache.tools.ant.taskdefs.Zip.executeMain(Zip.java:741) at org.apache.tools.ant.taskdefs.Zip.execute(Zip.java:568) at hudson.ClassicPluginStrategy.createClassJarFromWebInfClasses(ClassicPluginStrategy.java:589) at hudson.ClassicPluginStrategy.explode(ClassicPluginStrategy.java:530) ... 10 more Caused by: java.io.EOFException at java.io.RandomAccessFile.readFully(RandomAccessFile.java:446) at java.io.RandomAccessFile.readFully(RandomAccessFile.java:424) at org.apache.tools.zip.ZipFile.resolveLocalFileHeaderData(ZipFile.java:522) at org.apache.tools.zip.ZipFile.<init>(ZipFile.java:187) at org.apache.tools.zip.ZipFile.<init>(ZipFile.java:163) at org.apache.tools.ant.types.resources.ZipResource.getInputStream(ZipResource.java:133) at org.apache.tools.ant.types.resources.ResourceDecorator.getInputStream(ResourceDecorator.java:125) at org.apache.tools.ant.taskdefs.Zip.addResource(Zip.java:1041) at org.apache.tools.ant.taskdefs.Zip.addResources(Zip.java:1098) at org.apache.tools.ant.taskdefs.Zip.executeMain(Zip.java:665) - show quoted text - On Tuesday, February 21, 2017 at 9:22:35 AM UTC-5, Prasu S wrote: I upgraded Jenkins from 1.607 to 1.658 , after the upgrade credentials plugin 1.18 is missing. Due to this, we are not able to get code from Github. When I tried to re-install the same version(1.18) , it is still not showing under installed plugin list. How can I recover credential plugin. Any help is greatly appreciated. Thank you -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]<mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/cfc2ee75-6bd1-46de-a3c8-d1664958d822%40googlegroups.com<https://groups.google.com/d/msgid/jenkinsci-users/cfc2ee75-6bd1-46de-a3c8-d1664958d822%40googlegroups.com?utm_medium=email&utm_source=footer>. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/E21B7494-7343-4856-B181-542DE8993A9D%40cisco.com. For more options, visit https://groups.google.com/d/optout.
