Commit Graph
14549 Commits
Author SHA1 Message Date
f6802dd545 [JENKINS-69549] Margins for headers and paragraphs make descriptions … (#7078)
Co-authored-by: Alexander Brandes <mc.cache@web.de>
Co-authored-by: Tim Jacomb <timjacomb1@gmail.com>
Co-authored-by: Tim Jacomb <21194782+timja@users.noreply.github.com>
2024-12-09 10:43:00 +00:00
Kris Stern d046516d5f Merge pull request #8435 from janfaracik/keyboard-shortcut-animation
Update appearance of keyboard shortcut tooltips
2024-12-08 22:47:03 +08:00
Kris Stern 3beaec617b Merge pull request #9959 from timja/JENKINS-37241/autocomplete-improvements
[JENKINS-37241] Support for query parameters in autocomplete
2024-12-06 23:08:38 +08:00
Kris Stern 0f0b023b0f Merge pull request #9995 from tejasdrolia/BEE-51743
[JENKINS-74858]  Added validation for Password length in FIPS mode
2024-12-05 22:41:31 +08:00
Kris Stern 7d8d2a6f12 Merge pull request #10019 from slide/allow-subclasses-to-call-updateData
Allow subclasses of UpdateSite to call updateData
2024-12-05 21:13:22 +08:00
Tim Jacomb a1a313851e Merge branch 'master' into JENKINS-37241/autocomplete-improvements 2024-12-04 15:11:02 +00:00
Tejas 7d6b649aaa [JENKINS-74858] Resolved comments 2024-12-04 18:20:37 +05:30
Daniel Beck 171df4d105 Revert "Fixed spotbugs PATH_TRAVERSAL_IN issue in FileBoolean" (#10022)
Revert "Fixed spotbugs `PATH_TRAVERSAL_IN` issue in `FileBoolean` (#9638)"

This reverts commit e994d293e0.
2024-12-04 05:34:51 -07:00
Stefan SpiekerandMark Waite e994d293e0 Fixed spotbugs PATH_TRAVERSAL_IN issue in FileBoolean (#9638)
Co-authored-by: Mark Waite <mark.earl.waite@gmail.com>
2024-12-03 09:14:42 +00:00
Alex Earl 966e58684b Allow subclasses of UpdateSite to call updateData
The updateData method is required to be called for the
actual update data to be synced. For plugins that may
implement a different method for interacting with an
update site (e.g. an implementation of password or
API key protected update site being planned for the
Managed Update Sites plugin), we need to override
updateDirectlyNow and call updateData with the
retrieved JSON data.
2024-12-02 12:16:35 -07:00
Tejas 1c6282ee20 Merge branch 'master' into BEE-51743 2024-11-29 18:06:10 +05:30
Vincent Latombe 0235a800b8 Ensure NodeListener#onCreated is called once the Node initialization is complete (#9964) 2024-11-28 21:52:44 +00:00
Tejas 0cf9e31385 [JENKINS-74858] | Resolved some comments 2024-11-25 17:42:16 +05:30
Tejas 39171ee7fd Merge branch 'master' into BEE-51743 2024-11-20 21:51:25 +05:30
Tejas 7cfca7066e [JENKINS-74858] resolved some comments 2024-11-20 21:49:20 +05:30
Tejas afe7d250b8 BEE-51743 | Resolved comments 2024-11-20 18:03:49 +05:30
Tejas 93d34e3a94 BEE-51743 | Added validation for Password length in FIPS mode 2024-11-20 11:48:04 +05:30
github-actions[bot]andtimja ca121359ec Fill in since annotations (#9974)
Co-authored-by: timja <21194782+timja@users.noreply.github.com>
2024-11-16 20:50:47 +00:00
Tim Jacomb d017d30898 [JENKINS-37241] Support for query parameters in autocomplete 2024-11-11 15:09:21 +00:00
Jesse Glick ec448b51c0 Clarify SECURITY-3315 error code on client side (#9930) 2024-11-09 21:46:17 +00:00
Jesse GlickandVincent Latombe abef2ccd40 Introducing ControllerToAgentCallable and ControllerToAgentFileCallable (#9921)
Co-authored-by: Vincent Latombe <vincent@latombe.net>
2024-11-09 21:46:02 +00:00
Basil CrowandMark Waite 8298257227 [JENKINS-74795] Job created via REST API attaches to default view (#9947)
Co-authored-by: Mark Waite <mark.earl.waite@gmail.com>
2024-11-08 05:49:26 -08:00
Basil Crow ac63b7f156 [JENKINS-74814] java.lang.UnsupportedOperationException: This stack walker does not have RETAIN_CLASS_REFERENCE access (#9945) 2024-11-08 05:49:00 -08:00
Jesse Glick e0a54f41da Race condition & memory leak in TypedFilter (#9925) 2024-11-02 07:25:31 -06:00
Jesse Glick 1892e21472 Job.BuildNumberAssigner (#9846)
* `Job.BuildNumberAssigner`

* Clearer API for `saveNextBuildNumber` https://github.com/jenkinsci/jenkins/pull/9846#discussion_r1792991572
2024-11-02 07:25:16 -06:00
Jesse Glick 5db2f0139c Avoid saving nextBuildNumber while loading Job (#9778) 2024-11-02 07:25:07 -06:00
github-actions[bot]andtimja 87cfc46068 Fill in since annotations (#9927)
Co-authored-by: timja <21194782+timja@users.noreply.github.com>
2024-11-01 13:34:56 +00:00
Vincent Latombe 97e1009673 When calling Nodes#setNodes, NodeListener methods should be called as required (#9905)
* When calling Nodes#setNodes, NodeListener methods should be called as required

For example, when loading a new casc configuration, it calls Nodes#setNodes, and the NodeListener methods were not called, causing listener implementations not to be notified according to the new state.

* Fix reviews
2024-10-25 15:32:29 -06:00
Allan Burdajewicz 9e256de2d1 [JENKINS-73845] Fix OperatingSystemEndOfLifeAdminMonitor endOfLifeDate displayed on first warning day (#9908)
* [JENKINS-73845] Fix OperatingSystemEndOfLifeAdminMonitor endOfLifeDate displayed on first warning day

* [JENKINS-73845] Add test

* [JENKINS-73845] Improve test
2024-10-25 15:31:35 -06:00
Jesse Glick 7a1630235f Removing configurability of Jenkins.agentProtocols (#9903) 2024-10-24 18:41:45 +01:00
github-actions[bot]andtimja 1f7b6a8f0e Fill in since annotations (#9910)
Co-authored-by: timja <21194782+timja@users.noreply.github.com>
2024-10-24 18:38:16 +01:00
Vincent Latombe d9fbb65e98 Display appropriate GUI that accurately displays offline by design (#9883) 2024-10-23 09:04:54 +01:00
Basil Crow 6c5cdfa96c Allow for null to be passed to doSafeRestart (#9882) 2024-10-21 19:37:27 +01:00
5f7026dd03 [JENKINS-71728] Add CSP compatible version of FormApply#applyResponse (#8351)
Co-authored-by: Daniel Beck <1831569+daniel-beck@users.noreply.github.com>
Co-authored-by: Yaroslav Afenkin <yaroslavafenkin@users.noreply.github.com>
Co-authored-by: Alexander Brandes <brandes.alexander@web.de>
Co-authored-by: Basil Crow <me@basilcrow.com>
2024-10-21 19:36:27 +01:00
Daniel BeckandDaniel Beck 2c92eae462 [JENKINS-73768] Handle base=derived case in Util#isOverridden (#9728)
Co-authored-by: Daniel Beck <daniel-beck@users.noreply.github.com>
2024-10-21 19:35:37 +01:00
Vincent Latombe e8360278e2 Print Jenkins version on boot (#9878) 2024-10-20 09:24:52 +01:00
Vincent LatombeandJesse Glick b50cf513c1 [JENKINS-30101][JENKINS-30175] Simplify persistence design for temporarily offline status (#9855)
Co-authored-by: Jesse Glick <jglick@cloudbees.com>
2024-10-15 16:32:02 +01:00
Vincent LatombeandTim Jacomb fe80df5c51 Create a new taglib to capture the save/apply bottom bar (#9813)
Co-authored-by: Tim Jacomb <21194782+timja@users.noreply.github.com>
2024-10-14 19:23:01 +01:00
Tim Jacomb 34f77dd068 Merge branch 'master' into keyboard-shortcut-animation 2024-10-12 20:05:47 +01:00
github-actions[bot]andtimja 829be14884 Fill in since annotations (#9849)
Co-authored-by: timja <21194782+timja@users.noreply.github.com>
2024-10-12 06:06:31 -06:00
Devin Nusbaum d34b17ee4b [JENKINS-73835] Do not allow builds to be deleted while they are still running and ensure build discarders run after builds are fully complete (#9810)
* [JENKINS-73835] Do not allow builds to be deleted while they are still running

* [JENKINS-73835] Avoid redundant calls to Job.logRotate when builds complete and always call Job.logRotate after build finalization

* [JENKINS-73835] Add issue reference to RunTest.buildsMayNotBeDeletedWhileRunning

* [JENKINS-73835] Adjust DeleteBuildsCommandTest.deleteBuildsShouldSuccessEvenTheBuildIsRunning to match new behavior

* [JENKINS-73835] Run/delete.jelly should check Run.isLogUpdated, not Run.isBuilding
2024-10-12 06:06:18 -06:00
Devin Nusbaum 6651e8531e [JENKINS-63343] Validate element types for collections and maps when deserializing XML files (#9727)
* [JENKINS-63343] Validate element types in RobustCollectionConverter in some cases

* [JENKINS-63343] Also validate keys and values in map entries

* [JENKINS-63343] Improve OldDataMonitor error messages and update tests

* [JENKINS-63343] Also handle implicit collection with unspecified element types

* [JENKINS-63343] Spotless

* [JENKINS-63343] Avoid rawtypes

* [JENKINS-63343] Add tests for rawtypes

* [JENKINS-63343] Adjust Javadoc for clarity

* [JENKINS-63343] Avoid ClassCastException and check handling of null in tests

* [JENKINS-63343] Fix Javadoc link by adding import

* [JENKINS-63343] List.of cannot be used with null values
2024-10-11 14:42:38 -04:00
Devin Nusbaum 4d7b993c5b [JENKINS-73824] Wait for Pipeline builds to complete before allowing their jobs to be deleted (#9790)
* Wait for Pipelines to complete before allowing their jobs to be deleted

* Create mock Job/Run classes that use AsynchronousExecution to be able to add a regression test in core

* [JENKINS-73824] Do not repeatedly interrupt executables in ItemDeletion.cancelBuildsInProgress

* [JENKINS-73824] Delete ItemDeletionTest based on https://github.com/jenkinsci/jenkins/pull/9790#discussion_r1777727008
2024-10-06 14:41:02 -06:00
Basil Crow 77c3d7ac84 [JENKINS-73838] Compatibility for Jenkins#doSafeRestart(StaplerRequest, String) (#9797) 2024-10-04 09:59:10 -07:00
github-actions[bot]andtimja edd84f7ca7 Fill in since annotations (#9820)
Co-authored-by: timja <21194782+timja@users.noreply.github.com>
2024-10-03 09:10:53 -07:00
Basil Crow 1c2b84cb76 [JENKINS-73801] Nested Views plugin overrides View#doConfigDotXml(StaplerRequest) (#9764) 2024-10-02 08:47:16 -06:00
Basil Crow 47a212aa79 [JENKINS-73760] Updates fail due to invalid JSON from HTTP Update Center (#9760) 2024-10-02 08:46:51 -06:00
Vincent Latombe 39e6622524 Extract interfaces for objects to be used through the executors widget (#9749)
* Extract interfaces for objects to be used through the executors widget

This is required for CloudBees CI HA support: we provide alternate implementations of these interfaces to represent computers and related objects that exist in different physical replicas of the same logical instance. This allows to be build an aggregated view of computers and executors, some local, some remote.

* Fix Deprecated annotation

* Missing @Override annotations

* Missing @since TODO

* No longer true according to AbstractSubTask javadoc

* Restore old signature for compatibility

* Fix reviews

* Javadoc

* Typo

* Fix inconsistency between hasOfflineCause and getOfflineCauseReason

* Remove default implementation of ITask#getUrl

* Provide default impl in SubTask for compatibility

* Mark as CheckForNull

* Spotbugs

* ComputerSet#getComputers returns a collection that is sorted by name

* Missing Override

* Move permission declaration to the right place, closer to usage
2024-10-02 08:46:21 -06:00
Vincent Latombe a6f723cef7 Introduce SaveableListener#onDeleted (#9743)
* Introduce SaveableListener#onDeleted

Usually `Saveable` objects are written, but it can happen on occasion that they get deleted, and it wasn't generating an event for every case.

This provides a more fine-grained event that can be handled by implemented listeners.

In my case, I have a use case in CloudBees CI where I need to clear a cache entry when a Saveable gets deleted from disk.

* Spotless

* Explicitly test that the user that has performed the change can be obtained from the Saveable listener.
2024-10-02 08:45:44 -06:00
7a1c2ce67a [JENKINS-60866][JENKINS-71515] Use JSON#parse to process codemirror-config argument (#6867)
* [JENKINS-60866] Use JSON#parse to process codemirror-config argument

* Add backward compatibility for most common setting

* Integrate fixed antisamy-markup-formatter to pass test

* Fix JS and revert unnecessary antisamy-markup-formatter update

How do we have a billion different linters and not one did tell me
I'm redefining a variable?

* Remove comment

---------

Co-authored-by: Daniel Beck <daniel-beck@users.noreply.github.com>
Co-authored-by: Basil Crow <me@basilcrow.com>
2024-10-02 08:44:18 -06:00