-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Backporting LTS 2.541.2 #26219
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
shalinisudarsan
wants to merge
168
commits into
jenkinsci:stable-2.541
from
shalinisudarsan:chore/backporting-for-2.541.2
Closed
Backporting LTS 2.541.2 #26219
shalinisudarsan
wants to merge
168
commits into
jenkinsci:stable-2.541
from
shalinisudarsan:chore/backporting-for-2.541.2
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…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>
…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>
… response header can be >30KB (jenkinsci#25901) Co-authored-by: Daniel Beck <[email protected]>
…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>
Co-authored-by: Daniel Beck <[email protected]>
Co-authored-by: Daniel Beck <[email protected]>
…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
* 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>
* 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: timja <[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>
Contributor
|
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: |
…kinsci#26154) (cherry picked from commit 620b902)
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)
582f920 to
63cd1c0
Compare
Contributor
|
Please take a moment and address the merge conflicts of your pull request. Thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #
Testing done
Screenshots (UI changes only)
Before
After
Proposed changelog entries
Proposed changelog category
/label
Proposed upgrade guidelines
N/A
Submitter checklist
@Restrictedor have@since TODOJavadocs, as appropriate.@Deprecated(since = "TODO")or@Deprecated(forRemoval = true, since = "TODO"), if applicable.evalto ease future introduction of Content Security Policy (CSP) directives (see documentation).Desired reviewers
@mention
Before the changes are marked as
ready-for-merge:Maintainer checklist
upgrade-guide-neededlabel is set and there is a Proposed upgrade guidelines section in the pull request title (see example).lts-candidateto be considered.