User Tools

Site Tools


wiki:update_all_jenkins_plugins_at_once

This is an old revision of the document!


Update all Jenkins plugins at once

First make sure you enabled the jenkins cli

If you are using the user called dev and you set a fixed port to 44556, execute this:

UPDATE_LIST=$(ssh dev@localhost -p 44556 list-plugins | grep -e ')$' | awk '{ print $1 }')
if [ ! -z "${UPDATE_LIST}" ]; then 
  echo Updating Jenkins Plugins: ${UPDATE_LIST}; 
  ssh dev@localhost -p 44556 install-plugin ${UPDATE_LIST};
  ssh dev@localhost -p 44556 safe-restart;
fi

Tested on

  • Debian GNU/Linux 10 (buster)
  • Jenkins 2.346.3 running directly on host machine (no Docker)

See also

References

wiki/update_all_jenkins_plugins_at_once.1661175088.txt.gz · Last modified: 2022/08/22 15:31 by antisa

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki