Discussion:
Update all plugins automatically
g***@gmail.com
2018-10-17 21:18:25 UTC
Permalink
Hi,

We are using open source Jenkins and have a bunch of plugins installed. Is
there a way to update all the plugins that are in the "Updates" section in
the Plugin Manager?
--
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 jenkinsci-users+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/3f542eb5-6e3c-4035-9fe9-ff0fee90b163%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Simon Richter
2018-10-18 13:52:12 UTC
Permalink
Hi,
We are using open source Jenkins and have a bunch of plugins installed. 
Is there a way to update all the plugins that are in the "Updates"
section in the Plugin Manager?
Yes, if you select the checkboxes, you can update multiple plugins at
once. The "All" link at the bottom selects all checkboxes.

Simon
--
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 jenkinsci-users+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/20181018135212.GA17055%40psi5.com.
For more options, visit https://groups.google.com/d/optout.
Slide
2018-10-18 14:16:27 UTC
Permalink
Another option would be Jenkins Evergreen [1]. It may meet your needs if
you are looking for known working, updated plugins and Jenkins setups.

1 - https://jenkins.io/projects/evergreen/
Post by Simon Richter
Hi,
Post by g***@gmail.com
We are using open source Jenkins and have a bunch of plugins installed.
Is there a way to update all the plugins that are in the "Updates"
section in the Plugin Manager?
Yes, if you select the checkboxes, you can update multiple plugins at
once. The "All" link at the bottom selects all checkboxes.
Simon
--
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
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/20181018135212.GA17055%40psi5.com
.
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 jenkinsci-users+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVfJAVv6C53p_S8syH_0qQ_MRMf%3DqLd8rZo5B4QzTYjPdw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
g***@gmail.com
2018-10-18 19:57:15 UTC
Permalink
My Jenkins is not a docker setup. Can I still use this? I found a plugin
and installed it. But getting this error


HTTP ERROR 404

Problem accessing /evergreen/. Reason:

Not Found
Post by Slide
Another option would be Jenkins Evergreen [1]. It may meet your needs if
you are looking for known working, updated plugins and Jenkins setups.
1 - https://jenkins.io/projects/evergreen/
Post by Simon Richter
Hi,
Post by g***@gmail.com
We are using open source Jenkins and have a bunch of plugins installed.
Is there a way to update all the plugins that are in the "Updates"
section in the Plugin Manager?
Yes, if you select the checkboxes, you can update multiple plugins at
once. The "All" link at the bottom selects all checkboxes.
Simon
--
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
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/20181018135212.GA17055%40psi5.com
.
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 jenkinsci-users+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/9cc72885-4b3e-4701-9135-949efe6c94cb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
R. Tyler Croy
2018-10-19 15:22:56 UTC
Permalink
(replies inline)
Post by g***@gmail.com
My Jenkins is not a docker setup. Can I still use this? I found a plugin
and installed it. But getting this error
The Evergreen plugin is not useful when installed in a non-Jenkins Evergreen
instance. That plugin only exists to support the system bundled in those
Jenkins Evergreen containers.


--
GitHub: https://github.com/rtyler
Twitter: https://twitter.com/agentdero
--
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 jenkinsci-users+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/20181019152256.GT12208%40grape.brokenco.de.
For more options, visit https://groups.google.com/d/optout.
Baptiste Mathus
2018-10-19 15:49:24 UTC
Permalink
There is a message that makes it clear it was not supposed to be installed
on non-evergreen instances, but for some reason, it's removed
Filed https://issues.jenkins-ci.org/browse/JENKINS-54167 to fix it and make
it clearer for users this plugin must not be installed by anyone manually.
Post by R. Tyler Croy
(replies inline)
Post by g***@gmail.com
My Jenkins is not a docker setup. Can I still use this? I found a
plugin
Post by g***@gmail.com
and installed it. But getting this error
The Evergreen plugin is not useful when installed in a non-Jenkins Evergreen
instance. That plugin only exists to support the system bundled in those
Jenkins Evergreen containers.
--
GitHub: https://github.com/rtyler
Twitter: https://twitter.com/agentdero
--
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
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/20181019152256.GT12208%40grape.brokenco.de
.
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 jenkinsci-users+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS4bjr%2BGV_ovoUPakfnHZ3QE0z_vCsRkkqxaiRQnq0%2BEgg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
g***@gmail.com
2018-10-18 19:34:19 UTC
Permalink
I can't believe how dumb I became!!!

Thanks for the info :-)
Post by Simon Richter
Hi,
Post by g***@gmail.com
We are using open source Jenkins and have a bunch of plugins installed.
Is there a way to update all the plugins that are in the "Updates"
section in the Plugin Manager?
Yes, if you select the checkboxes, you can update multiple plugins at
once. The "All" link at the bottom selects all checkboxes.
Simon
--
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 jenkinsci-users+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/ae1906c1-1e28-402d-8523-efadcd0520f7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Benjamin Brummer
2018-10-18 20:10:53 UTC
Permalink
You could setup a job which runs periodically on jenkins master.

Solution 1 ssh

# prepare info file
INFO_FILE=plugins.update.info
# CleanUp
rm -f *
touch $INFO_FILE
# get current version of cli JAR
wget http://127.0.0.1:8080/jnlpJars/jenkins-cli.jar
# update plugins
java -jar jenkins-cli.jar -ssh -user automationuser -i
~/.ssh/automationuser/id_rsa list-plugins | grep ')$' >> ./report_raw ||
true
# format report-file
cat ./report_raw | sed s/' '/'\t'/g >> ./report
# prepare update list
UPDATE_LIST=$( java -jar jenkins-cli.jar -ssh -user username -i
~/path/to/id_rsa list-plugins | grep ')$' | cut -f 1 -d ' ' | sed
':a;N;$!ba;s/\n/ /g' );
# update and create report
echo $UPDATE_LIST
if [ ! -z "${UPDATE_LIST}" ]; then
java -jar jenkins-cli.jar -ssh -user username -i ~/path/to/id_rsa
install-plugin ${UPDATE_LIST};
java -jar jenkins-cli.jar -ssh -user username -i ~/path/to/id_rsa
safe-restart;
echo '<h2>Jenkins Plug-ins Update Report</h2>' >> $INFO_FILE
echo 'The following plug-in updates have been conducted:' >> $INFO_FILE
echo '<table>' >> $INFO_FILE
echo '<tr><th align='left' style='padding-right:20px'>Plug-in
ID</th><th align='left' style='padding-right:20px'>Plug-in name</th><th
align='left' style='padding-right:20px'>Old Version</th><th align='left'
style='padding-right:20px'>New Version</th><tr>' >> $INFO_FILE
awk 'BEGIN { FS = "[()\t]+" } ;{print "<tr><td align='left'
style='padding-right:20px'>"$1"</td><td align='left'
style='padding-right:20px'>"$2"</td><td align='left'
style='padding-right:20px'>"$3"</td><td align='left'
style='padding-right:20px'>"$4"</td></tr>"}' report >> $INFO_FILE
echo '</table>' >> $INFO_FILE
else
echo '<h2>Jenkins Plug-ins Update Report</h2>' >> $INFO_FILE
echo '<p><b>No updates</b> for installed plug-ins were available!</p>'
Post by g***@gmail.com
$INFO_FILE
fi
Solution 2 token
# prepare info file
INFO_FILE=plugins.update.info
rm -f $INFO_FILE
# get current version of cli JAR
rm -f jenkins-cli.jar
wget http://127.0.0.1:8080/jnlpJars/jenkins-cli.jar
# update plugins
rm -f ./tmp
rm -f ./tmp2
java -jar jenkins-cli.jar -auth username:token -s http://127.0.0.1:8080/
list-plugins | grep ')$' >> ./tmp | cat ./tmp | sed s/' '/'\t'/g >> ./tmp2
UPDATE_LIST=$( java -jar jenkins-cli.jar -auth username:token -s
http://127.0.0.1:8080/ list-plugins | grep ')$' | cut -f 1 -d ' ' | sed
':a;N;$!ba;s/\n/ /g' );
if [ ! -z "${UPDATE_LIST}" ]; then
java -jar jenkins-cli.jar -auth username:token -s
http://127.0.0.1:8080/ install-plugin ${UPDATE_LIST};
java -jar jenkins-cli.jar -auth username:token -s
http://127.0.0.1:8080/ safe-restart;
echo '<h2>Jenkins Plug-ins Update Report</h2>' >> $INFO_FILE
echo 'The following plug-in updates have been conducted:' >> $INFO_FILE
echo '<table>' >> $INFO_FILE
echo '<tr><th align=\"left\" style=\"padding-right:20px\">Plug-in
ID</th><th align=\"left\" style=\"padding-right:20px\">Plug-in name</th><th
align=\"left\" style=\"padding-right:20px\">Old Version</th><th
align=\"left\" style=\"padding-right:20px\">New Version</th><tr>' >>
$INFO_FILE
awk 'BEGIN { FS = "[()\t]+" } ;{print "<tr><td align=\"left\"
style=\"padding-right:20px\">"$1"</td><td align=\"left\"
style=\"padding-right:20px\">"$2"</td><td align=\"left\"
style=\"padding-right:20px\">"$3"</td><td align=\"left\"
style=\"padding-right:20px\">"$4"</td></tr>"}' tmp2 >> $INFO_FILE
echo '</table>' >> $INFO_FILE
else
echo '<h2>Jenkins Plug-ins Update Report</h2>' >> $INFO_FILE
echo '<p><b>No updates</b> for installed plug-ins were
available!</p>'>> $INFO_FILE
fi
Post by g***@gmail.com
Hi,
We are using open source Jenkins and have a bunch of plugins installed.
Is there a way to update all the plugins that are in the "Updates" section
in the Plugin Manager?
--
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 jenkinsci-users+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/91f2a236-5e5d-4451-b84a-b042a966724e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...