Page MenuHomePhabricator

Upgrade Jenkins to the next LTS, 2.332.2
Closed, ResolvedPublic


We currently run Jenkins 2.319.3, we should upgrade to the next LTS 2.332.2

Looks like the Debian package switch from hold System V init to systemd: Maybe we can consume their script instead of our own.

The Debian package can be retrieved from upstream and pushed to our by following the instructions at

Event Timeline

Jdforrester-WMF renamed this task from Upgrade Jenkins to to Upgrade Jenkins to the next LTS, 2.332.2.May 2 2022, 12:07 PM
hashar added a parent task: Restricted Task.May 18 2022, 7:35 AM
hashar updated the task description. (Show Details)

Change 792974 had a related patch set uploaded (by Hashar; author: Hashar):

[operations/puppet@production] jenkins: update path to war file

The package ship a /etc/default/jenkins which our Puppet erase and also comes with a systemd unit which we might consider using instead of our Puppet one.

I worked around one of the issue with:

sudo ln -s /usr/share/java/jenkins.war /usr/share/jenkins/jenkins.war

The agents could not connect:

[05/18/22 08:19:31] [SSH] Starting sftp client.
[05/18/22 08:19:32] [SSH] Copying latest remoting.jar... Could not copy remoting.jar into '/srv/jenkins-workspace' on agent
	at hudson.plugins.sshslaves.SSHLauncher.copyAgentJar(
	at hudson.plugins.sshslaves.SSHLauncher.access$300(
	at hudson.plugins.sshslaves.SSHLauncher$
	at hudson.plugins.sshslaves.SSHLauncher$
	at java.base/
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(
	at java.base/java.util.concurrent.ThreadPoolExecutor$
	at java.base/
Caused by: java.lang.IllegalArgumentException: invalid len argument
	at com.trilead.ssh2.jenkins.SFTPClient$
	at hudson.plugins.sshslaves.SSHLauncher.readInputStreamIntoByteArrayAndClose(
	at hudson.plugins.sshslaves.SSHLauncher.copyAgentJar(
	... 7 more
[05/18/22 08:19:32] Launch failed - cleaning up connection

I have manually deleted them from integration-cumin with:

sudo cumin --force '*' 'rm /srv/jenkins/workspace/remoting.jar'

The issue is . Apparently requires ssh-slaves-plugin to be updated for which is in 1.32.0 but we run 1.31.5 on CI Jenkins :-\ The release Jenkins was not affected and it uses 1.32.0

Mentioned in SAL (#wikimedia-releng) [2022-05-18T08:29:02Z] <hashar> Updating SSH Build agent from 1.31.5 to 1.32.0 on CI Jenkins to prevent an issue when uploading remoting.jar # T307339#7937268

hashar claimed this task.

Change 792974 merged by Muehlenhoff:

[operations/puppet@production] jenkins: update path to war file