Skip to content

fix(jcasc): remove deprecated excludeClientIPFromCrumb + silence release-drafter#2183

Merged
gounthar merged 3 commits into
jenkins-docs:weeklyfrom
gounthar:fix/jenkins-jcasc-weekly
Apr 21, 2026
Merged

fix(jcasc): remove deprecated excludeClientIPFromCrumb + silence release-drafter#2183
gounthar merged 3 commits into
jenkins-docs:weeklyfrom
gounthar:fix/jenkins-jcasc-weekly

Conversation

@gounthar
Copy link
Copy Markdown
Collaborator

Summary

Two fixes backported from main to the weekly branch.

Changes

1. JCasc startup crash (dockerfiles/jenkins.yaml)

DefaultCrumbIssuer no longer accepts the excludeClientIPFromCrumb attribute in newer Jenkins/JCasc versions. The baked-in config caused a fatal UnknownAttributesException at startup, putting the controller into a restart loop.

# Before
crumbIssuer:
  standard:
    excludeClientIPFromCrumb: false

# After
crumbIssuer:
  standard: {}

Note: the plugins.txt version bumps from the main fix are not included — the weekly branch uses coverage:2.x which does not have the plugin dependency conflict.

2. Failure diagnostics step (.github/workflows/plugin_update.yml)

Adds a Capture Jenkins logs on failure step so controller logs are surfaced in CI when the workflow fails. Uses grep -m1 controller || true to avoid aborting the step under bash -e/pipefail when no container is found.

3. Release Drafter silenced (.github/workflows/release-drafter.yml)

The action fails on every push and PR event because the repo has no releases, hitting a known pagination bug in release-drafter. Triggers replaced with workflow_dispatch only.

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>
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>
@github-actions github-actions Bot added the repo label Apr 21, 2026
@gounthar gounthar merged commit 2dcfca7 into jenkins-docs:weekly Apr 21, 2026
2 of 3 checks passed
@gounthar gounthar deleted the fix/jenkins-jcasc-weekly branch April 21, 2026 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant