Commit Graph
7339 Commits
Author SHA1 Message Date
Vincent LatombeandJesse Glick 0673bc698e Introduce Named, FullyNamed, FullyNamedModelObject interfaces (#10827)
* Introduce `Nameable`, `FullyNameable`, `FullyNameableModelObject` interfaces

These correspond to methods `getName`, `getFullName`, `getFullDisplayName` that did not have any common interface to call them, causing some inconvenient usages of switch statements or even reflection in CloudBees CI HA.

* Nameable -> Named

* Improve javadoc

Co-authored-by: Jesse Glick <jglick@cloudbees.com>

* Make ResourceActivity extend ModelObject

* Use full name for affinity key if available.

---------

Co-authored-by: Jesse Glick <jglick@cloudbees.com>
2025-08-08 10:58:14 -06:00
renovate[bot] 0833b621d1 Update dependency org.jenkins-ci.plugins:matrix-auth to v3.2.7 (#10936)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-07 14:47:05 -07:00
Jan Faracik d6e2c7cad0 Refine Add button for repeatable lists (#10913)
* Refine repeatable list Add button

* Update hetero-list.js

* Update HeteroListTest.java

* Update RepeatableTest.java

* Trigger Build

* Update ath.sh
2025-08-07 21:22:57 +02:00
Jesse Glick 211bdd1f28 Test /health/ not /health (#10924) 2025-08-07 10:11:08 +01:00
Jenkins Release Bot 78f3e0fc04 [maven-release-plugin] prepare for next development iteration 2025-08-05 13:08:06 +00:00
Jenkins Release Bot 3128978d53 [maven-release-plugin] prepare release jenkins-2.522 2025-08-05 13:07:43 +00:00
renovate[bot] 3f54cbbc60 Update dependency org.jenkins-ci.plugins:structs to v353 (#10919)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-04 13:19:57 -07:00
renovate[bot] 3f63b27671 Update dependency org.jenkins-ci.plugins:display-url-api to v2.217.va_6b_de84cc74b_ (#10918)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-04 13:17:54 -07:00
renovate[bot] 1335026c69 Update dependency org.jenkins-ci.plugins:bouncycastle-api to v2.30.1.81-264.v95c79c0e772c (#10916)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-04 13:15:18 -07:00
renovate[bot] a2cfb5dc4c Update dependency org.jenkins-ci.plugins.workflow:workflow-support to v976 (#10894)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-04 13:11:52 -07:00
Kris Stern f036fa8e03 Migrate tests to JUnit5 (#10895) 2025-08-03 08:53:53 +08:00
renovate[bot] 2ffa861389 Update dependency io.jenkins.plugins:ionicons-api to v94 (#10891)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-01 20:02:19 +02:00
Kris Stern 21a634c26d Update dependency org.jenkins-ci.plugins.workflow:workflow-api to v1382 (#10905) 2025-08-01 20:13:19 +08:00
Kris Stern 9999724bb8 Update dependency org.jenkins-ci.plugins:mailer to v515 (#10904) 2025-08-01 20:12:36 +08:00
renovate[bot] dc6d6bf640 Update dependency io.jenkins.plugins:bootstrap5-api to v5.3.7-2 2025-07-31 21:29:02 +00:00
renovate[bot] 843aaed906 Update dependency org.jenkins-ci.plugins.workflow:workflow-api to v1382 2025-07-31 19:31:13 +00:00
renovate[bot] 79fb33327e Update dependency org.jenkins-ci.plugins:mailer to v515 2025-07-31 19:31:08 +00:00
renovate[bot] c5cdaf2404 Update dependency org.jenkins-ci.plugins.workflow:workflow-step-api to v706 (#10893)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-31 06:52:23 -07:00
strangelookingnerd 934711acdc Migrate tests to JUnit5
* second batch of green tests
2025-07-31 14:49:30 +02:00
strangelookingnerd 0d14dd6a99 Migrate tests to JUnit5
* first batch of green tests
2025-07-31 11:25:26 +02:00
renovate[bot] 2c43b0c89e Update dependency org.jenkins-ci.plugins:script-security to v1378 2025-07-31 02:19:57 +00:00
renovate[bot] e01ea76e56 Update dependency org.jenkins-ci.plugins:cloudbees-folder to v6.1037.v4cb_8573b_72a_a_ (#10890)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-30 12:34:16 -07:00
renovate[bot] bc3d6d96d9 Update dependency org.jenkins-ci.plugins:scm-api to v707 (#10883)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-30 07:18:27 -07:00
renovate[bot] f28ce11ec5 Update dependency org.jenkins-ci.plugins:credentials to v1419 (#10885)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-30 07:18:11 -07:00
renovate[bot] 8fe4149a90 Update dependency io.jenkins.plugins:commons-text-api to v1.14.0-194.v804a_dc3a_1b_d8 (#10880)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-29 09:18:17 -07:00
renovate[bot] a981eef0fd Update dependency org.jenkins-ci.main:jenkins-test-harness to v2478 (#10879)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-29 09:17:12 -07:00
Jenkins Release Bot 52b70d9806 [maven-release-plugin] prepare for next development iteration 2025-07-29 13:10:27 +00:00
Jenkins Release Bot 32b9e8a5f6 [maven-release-plugin] prepare release jenkins-2.521 2025-07-29 13:10:02 +00:00
renovate[bot] 71d4b45745 Update dependency io.jenkins.plugins:font-awesome-api to v7 (#10874)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-25 10:57:44 -07:00
renovate[bot] 80d928e544 Update dependency io.jenkins.plugins:design-library to v403 (#10873)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-25 10:57:27 -07:00
renovate[bot] bcb01f95b9 Update dependency org.jenkins-ci.plugins:credentials to v1417 2025-07-24 19:48:44 +00:00
Jenkins Release Bot 5995ce7361 [maven-release-plugin] prepare for next development iteration 2025-07-22 13:08:14 +00:00
Jenkins Release Bot 9447e4abb9 [maven-release-plugin] prepare release jenkins-2.520 2025-07-22 13:07:51 +00:00
renovate[bot] 3ec62131a1 Update dependency org.jenkins-ci.plugins.workflow:workflow-api to v1380 (#10854)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-18 14:20:10 -07:00
Jenkins Release Bot d85d7c1a84 [maven-release-plugin] prepare for next development iteration 2025-07-15 13:09:45 +00:00
Jenkins Release Bot 8928ce2f29 [maven-release-plugin] prepare release jenkins-2.519 2025-07-15 13:07:49 +00:00
Basil CrowandMark Waite 9729e138ec Prepare Mockito to use -javaagent for JEP 451 (#10825)
Prepare for JEP 451

Co-authored-by: Mark Waite <mark.earl.waite@gmail.com>
2025-07-14 19:48:21 -06:00
renovate[bot] 8aaa17a9dc Update dependency io.jenkins.plugins:commons-lang3-api to v3.18.0-98.v3a_674c06072d 2025-07-12 03:23:13 +00:00
renovate[bot] 9769afbf71 Update dependency org.jenkins-ci.plugins:cloudbees-folder to v6.1036.vb_94fd035b_287 2025-07-09 22:49:21 +00:00
renovate[bot] c53d9baaab Update dependency org.jenkins-ci.plugins:cloudbees-folder to v6.1035.v059a_a_f946868 (#10819)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-09 12:34:03 -07:00
renovate[bot] 998fed8ba7 Update dependency org.jenkins-ci.plugins.workflow:workflow-step-api to v704 (#10815)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-09 12:27:57 -07:00
renovate[bot] b1707254e2 Update dependency org.jenkins-ci.plugins:cloudbees-folder to v6.1034.v4159e5986617 (#10813)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-09 12:26:12 -07:00
Mark Waite 95da76d9e4 Allow up to 15 seconds for agent reconnect (#10811) 2025-07-08 21:30:14 +01:00
renovate[bot] 0264318bc5 Update dependency io.jenkins.plugins:design-library to v401 (#10812)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-08 12:13:06 -07:00
Jenkins Release Bot 25cf83a96f [maven-release-plugin] prepare for next development iteration 2025-07-08 13:09:18 +00:00
Jenkins Release Bot 0c97647ff1 [maven-release-plugin] prepare release jenkins-2.518 2025-07-08 13:08:54 +00:00
Mark Waite f59a5d4536 Reduce test flakiness (#10809)
* Reduce inQueueTaskLookupByAPI flakiness

https://app.launchableinc.com/organizations/jenkins/workspaces/jenkins/data/test-paths/class%3Dhudson.model.QueueTest%23%23%23testcase%3DinQueueTaskLookupByAPI?dateFilter=90d
reports that inQueueTaskLookupByAPI has been flaky in th epast 90 days.
The flakiness seems to be specific to Windows and seems to be related to
the job not be in the queue quickly enough after the call toe schedule
the build.

If the job is not queued, sleep for 3 seonds to allow it time to queue.

Testing done:

Confirmed that the job queues consistently on my Linux computer, so the
sleep statement is not executed.

* Replace SCSS 1x with 1dppx to silence HTMLUnit warning

Per https://developer.mozilla.org/en-US/docs/Web/CSS/resolution , `x` is
an alias for `dppx`, so let's use `dppx` to avoid warnings from HTMLUnit.

* Reduce flakiness of ComputerStateTest#testUiForConnected

https://app.launchableinc.com/organizations/jenkins/workspaces/jenkins/data/test-paths/class%3Dhudson.cli.ComputerStateTest%23%23%23testcase%3DtestUiForConnected?dateFilter=90d
reports that there have been multiple failures of
ComputerStateTest#testUiForConnected in the last 90 days.  The failures
seem to be related to a race condition that the agent is not yet
disconnected when the state of the agent is checked.  Wait for 1 second
to allow the agent to disconnect before checking agent status.

The average time to run the test is 34 seconds.  This will increase that
average time by 1 second.  Not a significant increase compared to the
benefit of avoiding a flaky test.

* Reduce preventXssInBadgeTooltip flakes with a 2 second sleep

https://app.launchableinc.com/organizations/jenkins/workspaces/jenkins/data/test-paths/class%3Dhudson.model.RunTest%23%23%23testcase%3DpreventXssInBadgeTooltip?dateFilter=90d
shows there have been random test failures of preventXssInBadgeTooltip
in the last 90 days.

Reeduce failures by sleeping before the key assertions in order to allow
Jenkins to complete the initialization of the page.
2025-07-07 18:45:58 -06:00
atulajoshi24 f610669e01 Improve Javadoc of InMemorySecurityRealm (#10797)
* the documentation enhanced for InMemorySecurityRealm.java

* the documentation enhanced for InMemorySecurityRealm.java - more documentation added

* code review comments are incorporated

* code review comments

* paragraphs added to comments

* Code Review Comments addressed

* Code Review Comments Addressed
2025-07-07 18:45:38 -06:00
renovate[bot] ac10dd8843 Update dependency io.jenkins.plugins:bootstrap5-api to v5.3.7-1 (#10793)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-02 08:19:01 -07:00
renovate[bot] 4b4d0db62e Update dependency io.jenkins.plugins:design-library to v396 (#10790)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-01 12:13:40 -07:00