Commit Graph
22800 Commits
Author SHA1 Message Date
Markus Winter 44d9158d06 [JENKINS-73554] fix jelly exception (#9519)
ensure that we don't get an IndexOutOfBoundsException when the
controller has no executors on cloud pages
2024-08-09 15:56:30 -06:00
Mark Waite 5acf5350c6 [JENKINS-73495] Clarify the plugin incompatibility message (#9502)
The issue submitter suggested that the plugin incompatibility message
would be clearer if it specifically referred to the installed version
of the plugin.  That seems like an easy change to make and if it helps
a few users, that is great.
2024-08-09 15:56:00 -06:00
Tim Jacomb 9b1b1c60ab Switch to Renovate from Dependabot for remaining dependencies (#9459) 2024-08-07 08:26:42 -07:00
Jenkins Release Bot 00410a17f8 [maven-release-plugin] prepare for next development iteration 2024-08-06 10:30:48 +00:00
Jenkins Release Bot d0df46d2e8 [maven-release-plugin] prepare release jenkins-2.471 2024-08-06 10:30:26 +00: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
Jenkins Release Bot a0844df906 [maven-release-plugin] prepare for next development iteration 2024-07-30 17:25:09 +00:00
Jenkins Release Bot e62e466d44 [maven-release-plugin] prepare release jenkins-2.470 2024-07-30 17:24:44 +00:00
Mark Waite 3d03bc55ff Add end of life dates for Alpine 3.20, Ubuntu 24.04, Fedora 40 (#9501)
Also update the end of life dates for other operating systems based on
https://endoflife.date/ data.

Removes the 'start' entries because we are past the end of life date
of the RHEL 7 derivatives and the one other start date is not needed
because the default start date will cover it correctly.

Confirmed with a CentOS 8 computer that the end of life message
is displayed with the correct date for the CentOS 8 end of life.
The corrected end of life date has already passed, so there may be
Jenkins users that are surprised when their next upgrade reports that
they are running an unsupported operating system.
2024-07-29 18:57:44 -06: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
Jenkins Release Bot 0d5232fca4 [maven-release-plugin] prepare for next development iteration 2024-07-23 13:34:10 +00:00
Jenkins Release Bot 979f47b15d [maven-release-plugin] prepare release jenkins-2.469 2024-07-23 13:33:48 +00: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
James NordandMark Waite 81b90e4c11 [JENKINS-73404] SecretTextArea missing FormValidation support (#9450)
* [JENKINS-73404] unit test

* roundtrip as Secrets

* [JENKINS-73404] add validation for SecretTextArea

reworked the jelly and simplified the javascript.

the textarea is now always present in the DOM, so no need to remove
inputs to add a textarea.  Rather we just remove /hide the "hidden" attribute
from the elements we want to show/hide and give the textArea the
expected class and attributes for validation to occur

* remove unused data-prompt attribute

* Adapt getHiddenSecretValue to backend changes

* Adapt to Secrets being sent as "" rather than null

values for SecretTextArea are now always sent.  Whilst this is a change
in behavior the only way once set to unset is to set the value to the
mpty string "" which would still produce a Secret

Additionally this matches the behaviour of f:password and f:textarea

Given both of the above this change in behaviour should not break any
production use cases.

* Remove trailing spaces

---------

Co-authored-by: Mark Waite <mark.earl.waite@gmail.com>
2024-07-21 17:41:04 -06: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
Jenkins Release Bot 6afa31f0b3 [maven-release-plugin] prepare for next development iteration 2024-07-16 13:36:52 +00:00
Jenkins Release Bot cd5dad1092 [maven-release-plugin] prepare release jenkins-2.468 2024-07-16 13:36:31 +00:00
Jesse Glick c24633c303 Call out body of main-panel using HTML comments (#9457) 2024-07-13 12:41:33 +01: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
Jenkins Release Bot 2eb4456cf3 [maven-release-plugin] prepare for next development iteration 2024-07-09 17:52:58 +00:00
Jenkins Release Bot 1abde08118 [maven-release-plugin] prepare release jenkins-2.467 2024-07-09 17:52:36 +00: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
Jenkins Release Bot e022cb37cc [maven-release-plugin] prepare for next development iteration 2024-07-02 18:30:22 +00:00
Jenkins Release Bot 0f9daf95bf [maven-release-plugin] prepare release jenkins-2.466 2024-07-02 18:29:58 +00:00
Jenkins Release Bot 174c3b39a8 [maven-release-plugin] prepare for next development iteration 2024-06-25 13:25:26 +00:00
Jenkins Release Bot 9581d4dc55 [maven-release-plugin] prepare release jenkins-2.464 2024-06-25 13:25:01 +00:00
Jenkins Release Bot 61a8c3656e [maven-release-plugin] prepare for next development iteration 2024-06-18 13:25:19 +00:00
Jenkins Release Bot 713aa9a163 [maven-release-plugin] prepare release jenkins-2.463 2024-06-18 13:25:00 +00:00
Zbynek Konecny d041c43958 Replace usages of YUI framework by simple JS/CSS (#9395) 2024-06-18 07:34:31 +01:00
Basil Crow 500169be57 Delegate compression to servlet container (#9379)
* Delegate compression to servlet container

* Update incrementals

* Use released versions
2024-06-18 07:34:19 +01:00
Markus WinterandDaniel Beck 92ac1d8837 remove idle executors from widget (#9177)
* remove idle executors from widget

showing idle executors brings no value. They only blow up the widget.
Instead the busy/total number of executors are added behind the agent
name when the agent is online.
The executor name is kept intentionally to distinguish regular executors
from oneoffexecutors

* feedback

use an icon for oneoffexecutors (FlyweightTask), instead of using a
number for normal executors (which is also not really interesting).

When there are no agents and no builds running use the same text as when
collapsed to show that nothing is running.

* busy in widget header

* fine tuning styling

* icon-xs symbols

* show offline

* show collapsed with no executors

* fix css

* append tooltip to parent

---------

Co-authored-by: Daniel Beck <1831569+daniel-beck@users.noreply.github.com>
2024-06-18 07:34:05 +01:00
16b5d21052 [JENKINS-14789] Configurable interval for computer retention check (#7037)
* [JENKINS-14789] Configurable interval for computer retention check

Also update the lower bound delay as returned by each RetentionStrategy
 from 1min to 0min. This is enabling check intervals of <1min to trigger
 a re-check in the next cycle (previously, the nextCheck tracking would
 defer the next re-check into the 2nd cycle -- one for the timer loop
 and once for the nextCheck timestamp).

Includes a bug fix:
`CloudSlaveRetentionStrategy` tracks the agent timeout in milliseconds
 internally and returned the nextCheck delay as a tenth of that.
The nextCheck delay is consumed in minutes, leading to the max delay
 of one hour being used.
Fix: Convert the delay from milliseconds to minutes.

Signed-off-by: Jakob Ackermann <das7pad@outlook.com>

* [JENKINS-14789] Allow a check interval of one second

Signed-off-by: Jakob Ackermann <das7pad@outlook.com>

* [JENKINS-14789] Apply review feedback

- Double down on JavaDoc
- Migrate UI to jelly

Co-Authored-By: Alexander Brandes <mc.cache@web.de>
Signed-off-by: Jakob Ackermann <das7pad@outlook.com>

* [JENKINS-14789] Store computerRetentionCheckInterval in model instance

Signed-off-by: Jakob Ackermann <das7pad@outlook.com>

* [JENKINS-14789] Add missing javadoc comment

Signed-off-by: Jakob Ackermann <das7pad@outlook.com>

* [JENKINS-14789] Add tests for model

Signed-off-by: Jakob Ackermann <das7pad@outlook.com>

* [JENKINS-14789] Use AperiodicWork for ComputerRetentionWork

Signed-off-by: Jakob Ackermann <das7pad@outlook.com>

* [JENKINS-14789] limit computer retention check interval to 60s

Signed-off-by: Jakob Ackermann <das7pad@outlook.com>

* [JENKINS-14789] apply review feedback

Co-authored-by: Tim Jacomb <21194782+timja@users.noreply.github.com>
Signed-off-by: Jakob Ackermann <das7pad@outlook.com>

---------

Signed-off-by: Jakob Ackermann <das7pad@outlook.com>
Co-authored-by: Alexander Brandes <mc.cache@web.de>
Co-authored-by: Tim Jacomb <21194782+timja@users.noreply.github.com>
2024-06-18 07:33:46 +01:00
Mark Waite d99b83b127 Update javadoc and other docs with dates of API changes (#9396)
Several of the changes are not detected by the Python script but were
detected by `git grep TODO | grep since` with review of the output.

The cases that are not detected by the Python script seem obscure enough
to not bother with additions to the script.  If they become common
practice, then we can extend the Python script.
2024-06-17 06:12:55 -06:00