Update Jenkins core and plugins: 2022Q3 edition

Last time: #17894 (closed)

Preparation

  • Go through the changelog, paying attention to changes on how agents connect to controller, config changes that may need update, important changes in plugins, etc.
    • Current version: 2.346.1
    • Available version: 2.361.2
  • Upgrade the postbuildscript plugin, which needs a fix in Job definitions -- tails#19051 (moved)

Deployment

  • Deploy Jenkins upgrade to latest version available
  • Use the Groovy and Python3 scripts to generate a list of up-to-date plugins
  • Deploy plugins upgrades
  • Restart all agents.
  • Manually run the Update jobs script (may be needed so XML is valid with current Jenkins):
    sudo -u jenkins /usr/local/sbin/deploy_jenkins_jobs update

Wrap up

Leftover warnings:

  • global-build-stats plugin 244.v27c8a_2e50a_34 Stored XSS vulnerability: There's no newer version for this plugin for now and the previous one is from 5y ago.
Edited by Zen Fu