Skip to content

Backport of packaging in stable-2.541 for LTS 2.541.1#728

Merged
dduportal merged 10 commits intojenkinsci:stable-2.541from
lemeurherve:stable-2.541
Jan 8, 2026
Merged

Backport of packaging in stable-2.541 for LTS 2.541.1#728
dduportal merged 10 commits intojenkinsci:stable-2.541from
lemeurherve:stable-2.541

Conversation

@lemeurherve
Copy link
Member

@lemeurherve lemeurherve commented Jan 6, 2026

This PR is a backport of required changes pushed to the primary branch since the 2d December (3ee2adf, initial commit of stable-2.541 branch created with jenkins-infra/release#832).

Ref:

List of cherry-picked commits

Warning

Dropped as reverted in #730

+ from #728 (comment):

Pushed 50f0043 which hardcodes the Jenkins version to 2.541 (baseline of the next LTS in any case) as a replay setting JENKINS_VERSION env var to a previous version than 2.545 passed all tests.

Testing done

CI

Submitter checklist

  • Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or Jira
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Ensure you have provided tests that demonstrate the feature works or the issue is fixed

dduportal and others added 7 commits January 6, 2026 15:50
…rrect location, pointing to the published directory - jenkins-infra/helpdesk#4833 (comment)

Signed-off-by: Damien Duportal <[email protected]>
…ent variable 'GPG_PUBLIC_KEY_FILE'

Signed-off-by: Damien Duportal <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Fixes jenkins-infra/helpdesk#4055

Since get.jenkins.io already includes the SHA-256 checksum file for the
war file and it is copied to two destinations in this script, it seems
like a good place to copy the ASCII-armored PGP signatures for the war
at the same time.

The sha256 file shows that the file downloaded by the user is the same
file that was uploaded.

The asc file shows that the uploaded file was signed by the Jenkins PGP
signing key.

Confirmed that the 2.456 asc matches the war file with:

$ wget https://pkg.jenkins.io/debian-stable/jenkins.io-2023.key
$ gpg --import jenkins.io-2023.key
$ wget https://get.jenkins.io/war/2.456/jenkins.war
$ wget https://repo.jenkins-ci.org/artifactory/releases/org/jenkins-ci/main/jenkins-war/2.456/jenkins-war-2.456.war.asc
$ mv jenkins-war-2.456.war.asc jenkins.war.asc
$ gpg --verify jenkins.war.asc

Confirmed that the script changes worked as expected with the following
commands:

MY_WORKDIR=$(mktemp -d)
echo My work directory is $MY_WORKDIR

AGENT_WORKDIR=${MY_WORKDIR}/agent-workdir
SRCDIR=${MY_WORKDIR}/src-dir
WARDIR=${MY_WORKDIR}/dest-war-dir
WAR_WEBDIR=${MY_WORKDIR}/dest-war-webdir
export AGENT_WORKDIR SRCDIR WARDIR WAR_WEBDIR
mkdir -p ${AGENT_WORKDIR} ${SRCDIR} ${WARDIR} ${WAR_WEBDIR}

ARTIFACTNAME=jenkins
BASE=$(pwd)
SSH_OPTS=
VERSION=2.456
WAR=${SRCDIR}/jenkins.war
WAR_SHASUM=${SRCDIR}/jenkins.war.sha256
export ARTIFACTNAME BASE VERSION SSH_OPTS WAR WAR_SHASUM

PKGSERVER=localhost
export PKGSERVER

(cd $SRCDIR && wget https://get.jenkins.io/war/${VERSION}/jenkins.war)
(cd $SRCDIR && wget https://get.jenkins.io/war/${VERSION}/jenkins.war.sha256)
(cd $SRCDIR && wget https://repo.jenkins-ci.org/artifactory/releases/org/jenkins-ci/main/jenkins-war/${VERSION}/jenkins-war-${VERSION}.war.asc && mv jenkins-war-${VERSION}.war.asc jenkins.war.asc)

echo "WARDIR contents before publish:" && ls ${WARDIR}
echo
bash -v war/publish/publish.sh
echo "WARDIR contents after publish:" && ls ${WARDIR}/
echo "WARDIR/VERSION contents after publish:" && ls ${WARDIR}/${VERSION}/
@lemeurherve lemeurherve requested a review from a team as a code owner January 6, 2026 15:11
@lemeurherve lemeurherve marked this pull request as draft January 6, 2026 15:47
@lemeurherve
Copy link
Member Author

lemeurherve commented Jan 6, 2026

Molecule tests failing:
https://ci.jenkins.io/job/Packaging/job/packaging/job/PR-728/1/pipeline-overview/?start-byte=0&selected-node=50#log-50-1279

16:36:49  TASK [service] *****************************************************************
16:36:55  fatal: [almalinux-9]: FAILED! =&gt; {"changed": false, "msg": "Unable to start service jenkins: Job for jenkins.service failed because the control process exited with error code.\nSee \"systemctl status jenkins.service\" and \"journalctl -xeu jenkins.service\" for details.\n"}
16:36:57  fatal: [debian-11]: FAILED! =&gt; {"changed": false, "msg": "Unable to start service jenkins: Job for jenkins.service failed because the control process exited with error code.\nSee \"systemctl status jenkins.service\" and \"journalctl -xe\" for details.\n"}
16:36:57  fatal: [centos-stream-9]: FAILED! =&gt; {"changed": false, "msg": "Unable to start service jenkins: Job for jenkins.service failed because the control process exited with error code.\nSee \"systemctl status jenkins.service\" and \"journalctl -xeu jenkins.service\" for details.\n"}
16:36:57  fatal: [debian-12]: FAILED! =&gt; {"changed": false, "msg": "Unable to start service jenkins: Job for jenkins.service failed because the control process exited with error code.\nSee \"systemctl status jenkins.service\" and \"journalctl -xeu jenkins.service\" for details.\n"}
16:36:58  fatal: [oraclelinux-9]: FAILED! =&gt; {"changed": false, "msg": "Unable to start service jenkins: Job for jenkins.service failed because the control process exited with error code.\nSee \"systemctl status jenkins.service\" and \"journalctl -xeu jenkins.service\" for details.\n"}
16:37:00  fatal: [rockylinux-9]: FAILED! =&gt; {"changed": false, "msg": "Unable to start service jenkins: Job for jenkins.service failed because the control process exited with error code.\nSee \"systemctl status jenkins.service\" and \"journalctl -xeu jenkins.service\" for details.\n"}
16:38:02  changed: [centos-stream-10]
16:38:02  changed: [amazonlinux-2023]
16:38:02  changed: [ubuntu-24-04]
16:38:02  changed: [debian-13]
16:38:02  changed: [fedora-41]
16:38:02  changed: [opensuse-leap-15.6]
16:38:02  changed: [ubuntu-22-04]

@dduportal
Copy link
Collaborator

Molecule tests failing: https://ci.jenkins.io/job/Packaging/job/packaging/job/PR-728/1/pipeline-overview/?start-byte=0&selected-node=50#log-50-1279

16:36:49  TASK [service] *****************************************************************
16:36:55  fatal: [almalinux-9]: FAILED! =&gt; {"changed": false, "msg": "Unable to start service jenkins: Job for jenkins.service failed because the control process exited with error code.\nSee \"systemctl status jenkins.service\" and \"journalctl -xeu jenkins.service\" for details.\n"}
16:36:57  fatal: [debian-11]: FAILED! =&gt; {"changed": false, "msg": "Unable to start service jenkins: Job for jenkins.service failed because the control process exited with error code.\nSee \"systemctl status jenkins.service\" and \"journalctl -xe\" for details.\n"}
16:36:57  fatal: [centos-stream-9]: FAILED! =&gt; {"changed": false, "msg": "Unable to start service jenkins: Job for jenkins.service failed because the control process exited with error code.\nSee \"systemctl status jenkins.service\" and \"journalctl -xeu jenkins.service\" for details.\n"}
16:36:57  fatal: [debian-12]: FAILED! =&gt; {"changed": false, "msg": "Unable to start service jenkins: Job for jenkins.service failed because the control process exited with error code.\nSee \"systemctl status jenkins.service\" and \"journalctl -xeu jenkins.service\" for details.\n"}
16:36:58  fatal: [oraclelinux-9]: FAILED! =&gt; {"changed": false, "msg": "Unable to start service jenkins: Job for jenkins.service failed because the control process exited with error code.\nSee \"systemctl status jenkins.service\" and \"journalctl -xeu jenkins.service\" for details.\n"}
16:37:00  fatal: [rockylinux-9]: FAILED! =&gt; {"changed": false, "msg": "Unable to start service jenkins: Job for jenkins.service failed because the control process exited with error code.\nSee \"systemctl status jenkins.service\" and \"journalctl -xeu jenkins.service\" for details.\n"}
16:38:02  changed: [centos-stream-10]
16:38:02  changed: [amazonlinux-2023]
16:38:02  changed: [ubuntu-24-04]
16:38:02  changed: [debian-13]
16:38:02  changed: [fedora-41]
16:38:02  changed: [opensuse-leap-15.6]
16:38:02  changed: [ubuntu-22-04]

@lemeurherve
Copy link
Member Author

lemeurherve commented Jan 6, 2026

Pushed 50f0043 which hardcodes the Jenkins version to 2.541 (baseline of the next LTS in any case) as a replay setting JENKINS_VERSION env var to a previous version than 2.545 passed all tests.

Next steps for later:

@lemeurherve lemeurherve marked this pull request as ready for review January 6, 2026 20:07
@lemeurherve lemeurherve changed the title Backport Stable 2.541 Backport of packaging in stable-2.541 for LTS 2.541.1 Jan 6, 2026
@lemeurherve lemeurherve changed the title Backport of packaging in stable-2.541 for LTS 2.541.1 Backport of packaging in stable-2.541 for LTS 2.541.1 Jan 6, 2026
@lemeurherve lemeurherve added the into-lts This PR is filed against an LTS branch label Jan 6, 2026
krisstern
krisstern previously approved these changes Jan 7, 2026
@lemeurherve
Copy link
Member Author

lemeurherve commented Jan 8, 2026

@lemeurherve lemeurherve marked this pull request as draft January 8, 2026 15:59
@lemeurherve
Copy link
Member Author

lemeurherve commented Jan 8, 2026

d886f40 has since been reverted!

Reverted in 34803c9

EDIT: commit dropped via a rebase (cleaner and easier for review).

dduportal and others added 3 commits January 8, 2026 17:05
…eving latest weekly 2.545

Molecule tests are currently failing on latest weekly 2.545 while they passed on the previous 2.544 one. Using the LTS base version for this backport.
@lemeurherve lemeurherve added the release-version:2.541.1 Indicate that this has been or will be used and/or delivered in this Jenkins Core LTS packaging. label Jan 8, 2026
@dduportal dduportal merged commit 2b5e64a into jenkinsci:stable-2.541 Jan 8, 2026
3 checks passed
@lemeurherve lemeurherve deleted the stable-2.541 branch January 8, 2026 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

into-lts This PR is filed against an LTS branch release-version:2.541.1 Indicate that this has been or will be used and/or delivered in this Jenkins Core LTS packaging.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants