Skip to content

Commit 0b94e4a

Browse files
authored
fix(jenkins): resolve startup crash after upgrade to 2.555.1 (#2169)
Three changes to fix Jenkins failing to start with JCasc after the 2.541.3 → 2.555.1 LTS upgrade: 1. Remove `excludeClientIPFromCrumb` from crumbIssuer config in jenkins.yaml — this attribute was removed from DefaultCrumbIssuer in newer Jenkins, causing a fatal JCasc init failure on every start. 2. Update plugin-util-api to 7.1330.v47b_46ee2047a_ and echarts-api to 6.0.0-1279.v4e95ca_f54783 — coverage 3.x transitively requires these newer versions; the mismatch was silently swallowed by Docker build cache in CI but caused runtime plugin loading failures. 3. Add docker log capture step to plugin_update.yml so future startup failures surface the actual error instead of just an exit code. Validated locally: Jenkins 2.555.1 starts cleanly with this config. Signed-off-by: Bruno Verachten <gounthar@gmail.com>
1 parent 3d773c0 commit 0b94e4a

3 files changed

Lines changed: 14 additions & 5 deletions

File tree

.github/workflows/plugin_update.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,12 @@ jobs:
7474
# Create pull request using gh command
7575
gh pr create --title "chore(jenkins): Updates Jenkins plugins" --body "This pull request updates the Jenkins plugins listed in \`plugins.txt\`." --base "$BASE_BRANCH" --head "$BRANCH_NAME"
7676
fi
77+
78+
- name: Capture Jenkins logs on failure
79+
if: failure()
80+
run: |
81+
echo "=== Container status ==="
82+
docker ps -a
83+
echo "=== Jenkins controller logs ==="
84+
CTRL=$(docker ps -a --format "{{.Names}}" | grep controller | head -1)
85+
[ -n "$CTRL" ] && docker logs "$CTRL" 2>&1 | tail -200 || echo "No controller container found"

dockerfiles/jenkins.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ jenkins:
1313
password: "admin"
1414
authorizationStrategy: loggedInUsersCanDoAnything
1515
crumbIssuer:
16-
standard:
17-
excludeClientIPFromCrumb: false
16+
standard: {}
1817
nodes:
1918
- permanent:
2019
labelString: "docker jenkins agent"
@@ -23,7 +22,8 @@ jenkins:
2322
credentialsId: "jenkins-ssh-agent-private-key"
2423
host: "desktop-jenkins_agent-1"
2524
port: 22
26-
sshHostKeyVerificationStrategy: "nonVerifyingKeyVerificationStrategy"
25+
sshHostKeyVerificationStrategy:
26+
nonVerifyingKeyVerificationStrategy: {}
2727
name: "docker-ssh-jenkins-agent"
2828
nodeDescription: "ssh jenkins docker agent "
2929
remoteFS: "/home/jenkins/agent"

dockerfiles/plugins.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ credentials-binding:719.v80e905ef14eb_
1616
credentials:1502.v5c95e620ddfe
1717
display-url-api:2.217.va_6b_de84cc74b_
1818
durable-task:664.v2b_e7a_dfff66c
19-
echarts-api:6.0.0-1273.v36fc9fe89332
19+
echarts-api:6.0.0-1279.v4e95ca_f54783
2020
font-awesome-api:7.2.0-983.v3f63c34eddb_9
2121
git-client:6.6.0
2222
git:5.10.1
@@ -57,7 +57,7 @@ pipeline-stage-step:345.va_96187909426
5757
pipeline-stage-tags-metadata:2.2277.v00573e73ddf1
5858
pipeline-stage-view:2.40
5959
plain-credentials:199.v9f8e1f741799
60-
plugin-util-api:7.1320.v684dd26fca_19
60+
plugin-util-api:7.1330.v47b_46ee2047a_
6161
resource-disposer:0.25
6262
scm-api:728.vc30dcf7a_0df5
6363
script-security:1399.ve6a_66547f6e1

0 commit comments

Comments
 (0)