Skip to content

Commit 2dcfca7

Browse files
authored
fix(jcasc): remove deprecated excludeClientIPFromCrumb + silence release-drafter (#2183)
* fix(jcasc): remove deprecated excludeClientIPFromCrumb attribute DefaultCrumbIssuer no longer supports excludeClientIPFromCrumb in newer Jenkins/JCasc versions, causing a fatal UnknownAttributesException at startup. Replace with empty standard: {} block. Also add a failure capture step in plugin_update.yml to surface Jenkins logs when the workflow fails, improving diagnosability. Signed-off-by: Bruno Verachten <gounthar@gmail.com> * ci(release-drafter): disable automatic triggers Same fix as applied to main: replace push/pull_request triggers with workflow_dispatch to stop the action failing on every event due to the zero-releases pagination bug in release-drafter. Signed-off-by: Bruno Verachten <gounthar@gmail.com> --------- Signed-off-by: Bruno Verachten <gounthar@gmail.com>
1 parent 1fd1ff6 commit 2dcfca7

3 files changed

Lines changed: 11 additions & 13 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 -m1 controller || true)
85+
[ -n "$CTRL" ] && docker logs "$CTRL" 2>&1 | tail -200 || echo "No controller container found"

.github/workflows/release-drafter.yml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,7 @@
11
name: Release Drafter
22

33
on:
4-
push:
5-
# branches to consider in the event; optional, defaults to all
6-
branches:
7-
- main
8-
# pull_request event is required only for autolabeler
9-
pull_request:
10-
# Only following types are handled by the action, but one can default to all as well
11-
types: [opened, reopened, synchronize]
12-
# pull_request_target event is required for autolabeler to support PRs from forks
13-
# pull_request_target:
14-
# types: [opened, reopened, synchronize]
4+
workflow_dispatch:
155

166
permissions:
177
contents: read

dockerfiles/jenkins.yaml

Lines changed: 1 addition & 2 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"

0 commit comments

Comments
 (0)