I have a large fleet of Jenkins instances running in a cluster, all having 
the LDAP plugin version 1.6 (Jenkins version 1.611). I want to 
fleet-upgrade the LDAP plugin version to 1.7 (to incorporate environment 
variables in my plugin configuration). How do I achieve this without 
manually uploading 1.7 version through UI for each Jenkins instance?

I tried writing a script which basically performs these operations for each 
Jenkins instance:

   1. 1. Replace the existing .jpi/.hpi file in $JENKINS_HOME/plugins for 
   ldap plugin with the correct .hpi file (of the 1.7 version)
   2. 2. Edit config.xml under $JENKINS_HOME which has the version number
   3. 3. Safe restart Jenkins

It works fine till step 2 but as soon as I perform safe restart, Jenkins 
magically puts in the original .jpi/.hpi file (the 1.6 version file) back 
inside $JENKINS_HOME/plugins. Jenkins instance has the 1.6 plugin version 
again in the UI. Is there a better way to perform fleet plugin upgrades in 
general? I want to mention that I want the 1.7 plugin version, not the 
latest

How do I fix this? I even tried using curl (mentioned at 
http://stackoverflow.com/a/20848745/1746529) but didn't help.

-- 
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/37002132-3170-41df-a713-55caebdca064%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to