Skip to content

Conversation

@shalinisudarsan
Copy link

Latest core version: jenkins-2.548
Fixed:
- https://github.com/jenkinsci/jenkins/issues/26146
- https://github.com/jenkinsci/jenkins/issues/26039
- https://github.com/jenkinsci/jenkins/issues/16833

Postponed:

Fixes #

Testing done

Screenshots (UI changes only)

Before

After

Proposed changelog entries

  • human-readable text

Proposed changelog category

/label

Proposed upgrade guidelines

N/A

Submitter checklist

  • The issue, if it exists, is well-described.
  • The changelog entries and upgrade guidelines are appropriate for the audience affected by the change (users or developers, depending on the change) and are in the imperative mood (see examples). Fill in the Proposed upgrade guidelines section only if there are breaking changes or changes that may require extra steps from users during upgrade.
  • There is automated testing or an explanation as to why this change has no tests.
  • New public classes, fields, and methods are annotated with @Restricted or have @since TODO Javadocs, as appropriate.
  • New deprecations are annotated with @Deprecated(since = "TODO") or @Deprecated(forRemoval = true, since = "TODO"), if applicable.
  • UI changes do not introduce regressions when enforcing the current default rules of Content Security Policy Plugin. In particular, new or substantially changed JavaScript is not defined inline and does not call eval to ease future introduction of Content Security Policy (CSP) directives (see documentation).
  • For dependency updates, there are links to external changelogs and, if possible, full differentials.
  • For new APIs and extension points, there is a link to at least one consumer.

Desired reviewers

@mention

Before the changes are marked as ready-for-merge:

Maintainer checklist

  • There are at least two (2) approvals for the pull request and no outstanding requests for change.
  • Conversations in the pull request are over, or it is explicit that a reviewer is not blocking the change.
  • Changelog entries in the pull request title and/or Proposed changelog entries are accurate, human-readable, and in the imperative mood.
  • Proper changelog labels are set so that the changelog can be generated automatically.
  • If the change needs additional upgrade steps from users, the upgrade-guide-needed label is set and there is a Proposed upgrade guidelines section in the pull request title (see example).
  • If it would make sense to backport the change to LTS, be a Bug or Improvement, and either the issue or pull request must be labeled as lts-candidate to be considered.

renovate bot and others added 30 commits December 11, 2025 05:33
…a_324382 (jenkinsci#23906)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…3912)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…sci#23868)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…#23861)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…5902)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…enkinsci#11298)

* [JENKINS-45927] Truncate verbose CauseOfBlockage messages in queue

When multiple nodes reject a task, CompositeCauseOfBlockage previously
joined ALL rejection reasons with "; ", causing extremely verbose
tooltips that could fill the entire browser window.

This fix truncates the message to show only the first 5 reasons,
followed by "... and N more" when there are more than 5 reasons.

Signed-off-by: Steve Armstrong <[email protected]>

* Fix test assertions to account for TreeMap alphabetical ordering

The CompositeCauseOfBlockage uses a TreeMap which sorts keys
alphabetically, so "Reason 10" comes before "Reason 2". Updated
tests to use zero-padded numbers to ensure predictable ordering.

Signed-off-by: W0474997SteveArmstrong <[email protected]>

* Fix Checkstyle import order - static imports must come first

Jenkins Checkstyle rules require static imports to be in their own
group at the top, before regular imports.

Signed-off-by: W0474997SteveArmstrong <[email protected]>

---------

Signed-off-by: Steve Armstrong <[email protected]>
Signed-off-by: W0474997SteveArmstrong <[email protected]>
Co-authored-by: Steve Armstrong <[email protected]>
Co-authored-by: Mark Waite <[email protected]>
* make the MANAGE permission enabled by default

Removed experimental warning for MANAGE permission and enable it by default.

* update tests to accomodate enabling of Overall/Manage
)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* Add telemetry for Content Security Policy

* Add license header

* Add header length

---------

Co-authored-by: Daniel Beck <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…v7480a_da_70b_9e (jenkinsci#25904)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
….ve43756e2d2b_4 (jenkinsci#25907)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…enkinsci#25915)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…nkinsci#25925)

Warn users of Java 25 end of support September 2029

Beginning in March 2029, users will be warned that Java 25 will be
reaching its end of support in the Jenkins project.

Amends pull request:

* jenkinsci#11148

The 2+2+2 Java support plan recommends that we drop support for a Java
line after two years so that we're only supporting two Java versions at
a time.  Refer to the blog post:

* https://www.jenkins.io/blog/2023/11/06/introducing-2-2-2-java-support-plan/

Also refer to the Jenkins Enhancement Proposal pull request (incomplete):

* jenkinsci/jep#400

Testing done:

* None.  Relying on the existing behavior that I've seen from the Java
  17 administrative monitor.  It is now shown to users to warn them that
  we plan to drop Java 17 support by the end of March 2026
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…1317)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Update stapler.version to v2061

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
renovate bot and others added 16 commits January 23, 2026 11:25
)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* Replace if-cascades with switch

* Reference to empty collection field replaced with method call (Java 5)

* Anonymous type replaced with lambda (Java 8)

* Replaced lambda with method reference (Java 8)

* Statement lambda replaced with expression lambda (Java 8)

* Loop replaced with 'Collection.removeIf()' (Java 8)

* Null check replaced with method call (Java 9)

* Statement replaced with enhanced 'switch' (Java 14)

* Use text blocks (Java 15)

* Use pattern variable (Java 16)

* Replace if-cascades with switch

* Use 'Comparator' combinator

* Null check replaced with method call (Java 9)

* Use pattern variable (Java 16)

* Use record pattern (Java 21)

* Use SequencedCollection method (Java 21)

* Replaced lambda with method reference (Java 8)

* Cleanup unused imports

* Cleanup migrations (move comments, formatting, spotbugs...)

* Remove duplicate comment

Resolve GitHub Copilot review comment

* Remove blank line that may confuse Copilot

* Inject comments into source line

Attempt to satisfy GitHub Copilot

Complains about unreachable code

* Simplify with return value of switch statement

* Use pattern matching instanceof in one more case

* Don't lose the NetBeans comment that was there before

* Remove TODO for Java 21 pattern use, implemented

* Align comments with Unicode character they describe

---------

Co-authored-by: Mark Waite <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…ack end response is slow (jenkinsci#26161)

* [JENKINS-76249] Fix form submission when a dropdown changes and the web response is slow

calling renderOnDemand can cause the dom to be manipulated
aynchronouslyi due to function calls going to the Jenkins server (e.g.
stapler/bound/xxx/render).  When this occurs if there is a subsequent change to the
dropdown selection before this completes, when the HTML is finally
obtained from Jenkins it is inserted into the DOM, but it is inserted as
if it is still the selected option (ie it is not disable for the form).

renderOnDemand takes a callback function that will be called when the
DOM manipulation is complete, however the updateDropDownList did not
pass any function.

We now pass a function that manipulates the just added HTML if the
selected item is in fact no longer selected.

* Update war/src/main/webapp/scripts/hudson-behavior.js

Co-authored-by: Tim Jacomb <[email protected]>

* Apply suggestions from code review

Co-authored-by: Tim Jacomb <[email protected]>

---------

Co-authored-by: Tim Jacomb <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* API tokens with expiration

API tokens can now get an optional expiration date.
Added a select drop down from where you can choose from predefined
durations, a custom date (max 1 year) and no expiration.
Expiration date is shown in the list. Not expiring tokens are marked
with warning.

fixes jenkinsci#16695

* revert changes in SetupWizard

* fix linter

* fix ordering

* show when token expired

* notify on expiring and expired tokens

* format

* 2 lines only

make the creation date a tooltip of the expiration

* feedback

* feedback 2

don't add token when choosing date in the past

directly warn after creation when about to expire

* prettier

---------

Co-authored-by: Tim Jacomb <[email protected]>
* Add online help for removeLastBuild option

* Format help-removeLastBuild.html with Prettier

* Update core/src/main/resources/hudson/tasks/LogRotator/help-removeLastBuild.html

Co-authored-by: Mark Waite <[email protected]>

* Fix formatting and use correct HTML tag

My suggestion used the code tag, but should have used the pre tag

---------

Co-authored-by: Mark Waite <[email protected]>
…-jdk to v2.2.2 (jenkinsci#26178)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…3b_5b_b_a_a_ (jenkinsci#26208)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
@github-actions
Copy link
Contributor

github-actions bot commented Jan 29, 2026

Missing required label for changelog. Requires at least 1 of: bug, developer, dependencies, internal, localization, major-bug, major-rfe, rfe, regression-fix, removed, skip-changelog. Found: unresolved-merge-conflict, into-lts.

You can add the required label by adding a comment with the following text: /label <category>

@krisstern krisstern changed the title Chore/backporting for 2.541.2 Backporting LTS 2.541.2 Jan 29, 2026
@krisstern krisstern added the into-lts This PR is filed against an LTS branch label Jan 29, 2026
mawinter69 and others added 3 commits January 28, 2026 18:18
Co-authored-by: Alexander Brandes <[email protected]>
Co-authored-by: Tim Jacomb <[email protected]>
(cherry picked from commit 5312d24)
…ack end response is slow (jenkinsci#26161)

* [JENKINS-76249] Fix form submission when a dropdown changes and the web response is slow

calling renderOnDemand can cause the dom to be manipulated
aynchronouslyi due to function calls going to the Jenkins server (e.g.
stapler/bound/xxx/render).  When this occurs if there is a subsequent change to the
dropdown selection before this completes, when the HTML is finally
obtained from Jenkins it is inserted into the DOM, but it is inserted as
if it is still the selected option (ie it is not disable for the form).

renderOnDemand takes a callback function that will be called when the
DOM manipulation is complete, however the updateDropDownList did not
pass any function.

We now pass a function that manipulates the just added HTML if the
selected item is in fact no longer selected.

* Update war/src/main/webapp/scripts/hudson-behavior.js

Co-authored-by: Tim Jacomb <[email protected]>

* Apply suggestions from code review

Co-authored-by: Tim Jacomb <[email protected]>

---------

Co-authored-by: Tim Jacomb <[email protected]>
(cherry picked from commit 46a0a75)
@shalinisudarsan shalinisudarsan force-pushed the chore/backporting-for-2.541.2 branch from 582f920 to 63cd1c0 Compare January 29, 2026 02:19
@github-actions github-actions bot added the unresolved-merge-conflict There is a merge conflict with the target branch. label Jan 29, 2026
@github-actions
Copy link
Contributor

Please take a moment and address the merge conflicts of your pull request. Thanks!

@github-actions github-actions bot removed the unresolved-merge-conflict There is a merge conflict with the target branch. label Jan 29, 2026
@krisstern krisstern changed the base branch from master to stable-2.541 January 29, 2026 02:25
@krisstern krisstern closed this Jan 29, 2026
@shalinisudarsan shalinisudarsan deleted the chore/backporting-for-2.541.2 branch January 29, 2026 02:26
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.