Commit Graph
14477 Commits
Author SHA1 Message Date
Devin Nusbaum dab6597416 [JENKINS-73687] Make deserialization of Map fields in XML files more robust (#9653)
* Improve resilience against malformed XML files during deserialization

* Improve error message
2024-09-13 16:21:22 -06:00
Vincent LatombeandJesse Glick 35d767790f Introduce HistoricalBuild interface (#9674)
* Introduce HistoricalBuild interface

This allows to display Run-like objects in build history without having concrete Run present in the Jenkins instance.

* Remove BuildHistoryWidget#entries.jelly

* JDK17 level

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

---------

Co-authored-by: Jesse Glick <jglick@cloudbees.com>
2024-09-10 20:32:36 -06:00
Basil Crow 85d6358c32 Compatibility for ChainedServletFilter (#9696) 2024-09-09 16:14:48 +01:00
Markus WinterandKris Stern 2431b7c9b3 [JENKINS-72988] validate displayname against items in the same ItemGroup (#9152)
Co-authored-by: Kris Stern <krisstern@outlook.com>
2024-09-09 16:13:20 +01:00
Vincent Latombe bfcb8741d8 Merge pull request #9645 from Vlatombe/with-console-url 2024-09-09 16:57:03 +02:00
Vincent Latombe b56e5d796a Merge pull request #9673 from Vlatombe/computerListener.onIdle 2024-09-09 11:21:50 +02:00
Vincent Latombe 2f6d77c70f Merge branch 'master' into with-console-url 2024-09-04 10:48:53 +02:00
7006cded64 [JENKINS-73278] Migrate core from EE 8 to EE 9 (#9672)
Co-authored-by: Kevin Guerroudj <91883215+Kevin-CB@users.noreply.github.com>
Co-authored-by: Daniel Beck <1831569+daniel-beck@users.noreply.github.com>
2024-09-03 14:59:04 -07:00
Allan BurdajewiczandDaniel Beck 5fe9a44805 [JENKINS-73422] Add escape hatch for Authenticated user access to Resource URL (#9644)
Co-authored-by: Daniel Beck <1831569+daniel-beck@users.noreply.github.com>
2024-08-30 14:26:27 +01:00
Kris SternandDaniel Beck a075ffb583 Add doCheckDisplayNameOrNull to jenkins core (#9150)
Co-authored-by: Daniel Beck <1831569+daniel-beck@users.noreply.github.com>
2024-08-30 14:25:58 +01:00
Vincent Latombe 6b88bfcbd5 Spotless 2024-08-28 16:22:14 +02:00
Vincent Latombe ed93ad020a Revert "Call listener synchronously, but outside synchronized"
This reverts commit 75242cf030.
2024-08-28 16:12:09 +02:00
Vincent Latombe 75242cf030 Call listener synchronously, but outside synchronized 2024-08-28 15:47:51 +02:00
Vincent Latombe 9823b8ed7e Execute ComputerListener#onIdle in another thread. 2024-08-28 15:40:43 +02:00
Vincent Latombe 64667af499 Implement ComputerListener#onIdle
Introduces a new computer listener fired whenever a Computer becomes idle.
2024-08-28 09:54:25 +02:00
Vincent LatombeandJesse Glick 5df30de435 Add -webSocket option by default when creating an inbound agent (#9665)
* Add -webSocket option by default when creating an inbound agent

* Update core/src/main/resources/hudson/slaves/JNLPLauncher/main.properties

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

---------

Co-authored-by: Jesse Glick <jglick@cloudbees.com>
2024-08-27 19:22:38 -06:00
Jesse Glick f84ab6aae1 [JENKINS-73692] Turn off logging from BackgroundGlobalBuildDiscarder (#9663)
Turn off logging from `BackgroundGlobalBuildDiscarder`
2024-08-27 19:22:12 -06:00
Daniel BeckandDaniel Beck ffdd5be9a3 Fix error message when creation of item by type is prohibited (#9662)
Co-authored-by: Daniel Beck <daniel-beck@users.noreply.github.com>
2024-08-26 17:43:31 -06:00
Basil Crow 856bd0fc58 Turn down log level of StaplerFilteredActionListener (#9643) 2024-08-22 12:50:03 -06:00
Vincent Latombe 2d30cfcf98 Fix review 2024-08-22 17:20:38 +02:00
Vincent LatombeandDevin Nusbaum 44602bbf9c Typo spotted by @dwnusbaum
Co-authored-by: Devin Nusbaum <dwnusbaum@users.noreply.github.com>
2024-08-22 17:12:59 +02:00
Vincent Latombe 39d30c8828 Add WithConsoleUrl interface
This simplifies the logic of `Functions#getConsoleUrl` and makes it pluggable.
2024-08-22 15:33:03 +02:00
Madis PärnandTim Jacomb b064be0de8 JENKINS-68822 added support for removing all builds with LogRotator (#9405)
* JENKINS-68822 added support for removing all builds with LogRotator

* Update core/src/main/java/hudson/tasks/LogRotator.java

---------

Co-authored-by: Tim Jacomb <21194782+timja@users.noreply.github.com>
2024-08-21 07:46:42 +02:00
Mark Waite 1a9f6684c7 Update @since javadoc comments for recent API additions (#9629) 2024-08-18 20:32:00 -06:00
Jérôme Pochat c8eddd3f65 [JENKINS-73597] Remove RekeySecretAdminMonitor and related resources (#9594) 2024-08-15 11:29:01 -07:00
Desprez Jean-Marc d176756f17 [JENKINS-73499] Add a warning if there is a risk of exposing credentials through a non-TLS proxy connection (#9491) 2024-08-10 21:56:11 +01:00
Tim JacombandDaniel Beck 824c868dc7 Modernise project relationship page (#9461)
Co-authored-by: Daniel Beck <1831569+daniel-beck@users.noreply.github.com>
2024-08-10 21:56:00 +01:00
Yaroslav Afenkin 3752f406bf [SECURITY-3349] 2024-07-30 18:37:07 +00:00
Daniel Beck 5d26b53ad3 [SECURITY-3430] 2024-07-30 18:37:01 +00:00
Basil Crow ca241b4bf6 Use detached plugins as a cache for the Update Center (#9476) 2024-07-29 18:57:31 -06:00
Jesse Glick cbfe2d4d00 Tolerate HttpResponse thrown from Descriptor.newInstance (#9495)
* Tolerate `HttpResponse` thrown from `Descriptor.newInstance`

* Incremental version

* Pick up release of https://github.com/jenkinsci/stapler/pull/571
2024-07-28 08:13:05 -06:00
Daniel BeckandDaniel Beck 11f87f70ad Deprecate AdministrativeMonitor#getRequiredPermission (#9494)
Co-authored-by: Daniel Beck <daniel-beck@users.noreply.github.com>
2024-07-28 08:12:48 -06:00
Daniel Beck 6f7edd1868 Add missing at-since in AdministrativeMonitor (#9493) 2024-07-27 09:58:51 +02:00
Jesse GlickandVincent Latombe 220165fd27 ItemListener.onCheckDelete & ItemDeletion.cancelBuildsInProgress (#9480)
* `ItemListener.onCheckDelete` & `ItemDeletion.cancelBuildsInProgress`

* Remove missing parameter from javadoc

---------

Co-authored-by: Vincent Latombe <vincent@latombe.net>
2024-07-23 19:50:21 -06:00
Markus WinterandJan Faracik 0255a59b23 experimental flag to run Jenkins without YUI (#9489)
* experimental flag to run Jenkins without YUI

The YUI library is old and no longer maintained.

Add a user experimental flag to disable YUI. It's disabled by default.
When enabling all the YUI related js libraries and css classes are not
loaded.

Following PR are required to get Jenkins to not show any errors

eventually #7569

Some plugins that use YUI (not complete):
credentials
ldap
global-build-stats
build-monitor
categorized-view

Plugins that make use of makeButton (not complete)
credentials (fixed with https://github.com/jenkinsci/credentials-plugin/pull/533)
openid

acceptance-test-harness

* fix typo

Co-authored-by: Jan Faracik <43062514+janfaracik@users.noreply.github.com>

* add license and restrict class

---------

Co-authored-by: Jan Faracik <43062514+janfaracik@users.noreply.github.com>
2024-07-22 18:34:15 +02:00
Markus Winter e9d210a86d modernise build time trend page (#9465)
* modernise build time trend page

- use jenkins-table
- add time since column
- make the link to the console an explicit icon (like for the agent
  history)
- hide the agent column for pipeline jobs

* apply prettier

* missing let declaration

* fix tests

* change flex-direction with media

* apply prettier

* revert change to buildListTable
2024-07-22 18:33:56 +02:00
Mark Waite 77f620e3cc Update version numbers of new APIs in Javadoc (#9486)
Update @since TODO javadoc comments
2024-07-20 16:45:12 -06:00
Basil Crow e4f3a0d2fe [JENKINS-73467] No facility to try unsupported Remoting versions when using inbound agents (#9485) 2024-07-20 16:44:58 -06:00
Jesse Glick 7680da0cef Lifecycle.onBootFailure (#9483) 2024-07-20 16:44:43 -06:00
Jesse Glick 62e4ac4778 [JENKINS-66105] Allow follow redirects to work after 303 from buildWithParameters (#9446) 2024-07-20 16:44:34 -06:00
Jesse Glick baa0b2c25c Deprecating SubTask.getLastBuiltOn (#9442) 2024-07-20 16:44:14 -06:00
Jesse Glick 9e629f6517 Note the plugin responsible for loading a detached plugin (#9478) 2024-07-19 14:58:35 -06:00
Vincent Latombe b2021f2464 Merge pull request #9449 from Vlatombe/show-plugin-url-when-installing 2024-07-17 13:25:41 +02:00
Vincent Latombe 8ca14f8c1d Refactor to cover error case 2024-07-11 13:18:25 +02:00
Vincent Latombe 4f532a1302 Include redirected URL, but in FINE level to avoid adding noise to logs. 2024-07-11 10:00:48 +02:00
Wadeck FollonierandTim Jacomb 6fa26d23a7 [JENKINS-69869] Categorize the user properties (#7268)
Co-authored-by: Tim Jacomb <timjacomb1@gmail.com>
2024-07-11 08:00:54 +01:00
Vincent Latombe f9a935b082 Show plugin source URL when downloading it
Example: Downloading email-ext from https://updates.jenkins.io/download/plugins/email-ext/1814.v404722f34263/email-ext.hpi
2024-07-10 11:28:58 +02:00
Vincent Latombe dc36857468 Cover new logic and fix check 2024-07-08 09:53:43 +02:00
Vincent Latombe 4152c5726b Add a method to check for permission instead 2024-07-08 09:35:49 +02:00
Vincent Latombe 7df974eea1 Allow administrative monitors to be displayed for users with Overall/MANAGE permission
This allows users with `Overall/MANAGE` permission but not `Overall/SYSTEM_READ` to display administrative monitors if the administrative monitor has been implemented to allow it.
2024-07-05 14:26:51 +02:00