Commit Graph

34291 Commits

Author SHA1 Message Date
Jenkins Release Bot f3da1f0638 [maven-release-plugin] prepare for next development iteration 2024-01-22 16:48:49 +00:00
Jenkins Release Bot 9ed5f66f62 [maven-release-plugin] prepare release jenkins-2.426.3 2024-01-22 16:48:14 +00:00
Kevin-CB a74865391d [SECURITY-3314] 2024-01-16 17:10:25 +00:00
Daniel Beck 6b2e962047 [SECURITY-3315] 2024-01-16 17:10:19 +00:00
Alexander Brandes 96dc95a55e
Merge pull request #8843 from krisstern/feat/stable-2.426/backporting-2.426.3-1
Backporting LTS 2.426.3
2024-01-09 21:52:55 +01:00
Alexander Brandes 914f0d46eb Increase MavenTest#sensitiveParameters() timeout to 500s (#8840)
Infrastructure issue that we don't want to allow to delay the release
candidate of 2.426.3.

https://github.com/jenkins-infra/helpdesk/issues/3890 is the issue

(cherry picked from commit 3dbbf26894)
2024-01-08 20:56:28 -07:00
Mark Waite 987b147ba2 [JENKINS-72469] Avoid repeated tool downloads from misconfigured HTTP servers (#8814)
* [JENKINS-72469] Avoid repeated tool downloads from misconfigured HTTP servers

The Azul Systems content delivery network stopped providing the
last-modified header in their URL responses.  They only provide the
ETag header.

Add ETag support to the Jenkins FilePath URL download method so that if ETag is
provided, we use the ETag value.  If last-modified is provided and matches, we
continue to honor it as well.

https://issues.jenkins.io/browse/JENKINS-72469 has more details.

https://community.jenkins.io/t/job-stuck-on-unpacking-global-jdk-tool/11272
also includes more details.

Testing done

* Automated test added to FilePathTest for code changes on the controller.
  The automated test confirms that even without a last-modified value,
  the later downloads are skipped if a matching ETag is received.
  The automated test also confirms that download is skipped if OK is
  received with a matching ETag.  No automated test was added to confirm
  download on the agent because that path is not tested by any of the
  other test automation of this class.

* Interactive test with the Azul Systems JDK installer on the controller.
  I created a tool installer for the Azul JDK.  I verified that before
  this change it was downloaded each time the job was run.  I verified
  that after the change it was downloaded only once.

* Interactive test with the Azul Systems JDK installer on an agent.
  I created a tool installer for the Azul JDK.  I verified that before
  this change it was downloaded each time the job was run.  I verified
  that after the change it was downloaded only once.

* Interactive test on the controller with a file download from an NGINX
  web server confirmed that the tool is downloaded once and then later
  runs of the job did not download the file again.

* Use equals instead of contains to check ETag

Don't risk that a substring of an earlier ETag might cause a later
ETag to incorrectly assume it does not need to download a modified
installer.

* Use weak comparison for ETag values

https://httpwg.org/specs/rfc9110.html#field.etag describes weak comparison
cases and notes that content providers may provide weak or strong entity
tags.  Updated code to correctly compare weak and strong entity tags.

Also improves the null checks based on the suggestions from @mawinter69
in https://github.com/jenkinsci/jenkins/pull/8814#discussion_r1438909824

* Test comparison of weak and strong validators

* Do not duplicate test args, more readable

* Use better variable names in test

Cover more branches in the equalEtags method as well

* Fix variable declaration order

(cherry picked from commit c8156d41f2)
2024-01-08 22:57:56 +08:00
Carroll Chiou 8908239882 [JENKINS-71737] fix redirect when submitting cloud changes (#8505)
Co-authored-by: Alexander Brandes <mc.cache@web.de>
(cherry picked from commit ec27a074c9)
2024-01-08 22:56:47 +08:00
Jenkins Release Bot 2bc5292feb [maven-release-plugin] prepare for next development iteration 2023-12-13 16:59:52 +00:00
Jenkins Release Bot 3eb7009942 [maven-release-plugin] prepare release jenkins-2.426.2 2023-12-13 16:59:41 +00:00
Alexander Brandes abe7181b63
Merge pull request #8721 from krisstern/feat/stable-2.426/backporting-2.426.2-1
Backporting for 2.426.2
2023-11-27 20:37:00 +01:00
Mark Waite a190edf082 [JENKINS-72252] Warn 12 months and 3 months before end of Java support (#8661)
Show Java version admin monitor at 12 months and 3 months

Daniel Beck described his recommendation to alert users at 12 months
and at 3 months prior to the end of support of a Java version.

He wrote:

> The second warning in particular needs to strike a balance between
> being shown late enough so it's actually relevant for whoever hasn't
> acted yet, while being shown early enough that slightly more elaborate
> environments (difficult to schedule maintenance windows) are informed
> in time. 3 months aligns rather nicely with the LTS schedule where
> we kinda expect folks to do that anyway.
>
> 18/9, or even 12/6 errs too far on the side of those for whom this is
> extreme effort (and who dismissed the first message more appropriate for
> their environment!), while showing everyone else completely irrelevant
> notices they won't care about for many months to come.

https://github.com/jenkinsci/jep/pull/400#discussion_r1371510566 provides
more details.

The Java 8 to Java 11 transition saw a significant change in adoption of
Java 11 once the admin monitor was visible to users.  That was shown
slightly over 12 months before the release that required Java 11.
This change continues that pattern of 12 months warning before end
of support.

https://github.com/jenkinsci/jep/pull/400#discussion_r1375623888 has a
graph that shows the adoption curves for Java 8, Java 11, and Java 17.

(cherry picked from commit aeb64c0c3d)
2023-11-26 19:15:37 +08:00
Basil Crow f0846d9797 [JENKINS-72266] Upgrade Winstone from 6.14 to 6.16 (upgrade Jetty from 10.0.17 to 10.0.18 (#8666)
[JENKINS-72266] Upgrade Winstone from 6.14 to 6.16 (upgrade Jetty from 10.0.17 to 10.0.18)

(cherry picked from commit d329577673)
2023-11-26 19:14:42 +08:00
Jenkins Release Bot 5e97678698 [maven-release-plugin] prepare for next development iteration 2023-11-15 14:39:37 +00:00
Jenkins Release Bot 04ae84057d [maven-release-plugin] prepare release jenkins-2.426.1 2023-11-15 14:39:25 +00:00
Mark Waite 4c564b0ed8
Merge pull request #8686 from MarkEWaite/stable-2.426.1-backport-2
Backporting for 2.426.1 - part 2
2023-11-09 13:52:49 -07:00
Basil Crow 7aad9e5b4d [JENKINS-70994] Upgrade bundled SnakeYAML plugin from 1.33-95.va_b_a_e3e47b_fa_4 to 2.2-111.vc6598e30cc65 (#8674)
(cherry picked from commit 93420cb8ef)
2023-11-09 07:51:16 -07:00
Markus Winter 4a658418b8 [JENKINS-72189] fix drag&drop handle for existing repeatables (#8613)
[JENKINS-72189] fix drag&drop handle for repeatables

(cherry picked from commit c5442a0196)
2023-10-31 13:26:47 -06:00
Mark Waite 9f3db79018
Merge pull request #8658 from MarkEWaite/stable-2.426-backports
Backporting for 2.426.1
2023-10-31 13:24:46 -06:00
Daniel Beck b5607975c0 [JENKINS-72179] Show description of boolean build parameter values (#8606)
Co-authored-by: Daniel Beck <daniel-beck@users.noreply.github.com>
(cherry picked from commit d6b4637658)
2023-10-30 06:19:54 -06:00
Daniel Beck 5080643722 Add telemetry for Jenkins uptime (#8596)
Co-authored-by: Daniel Beck <daniel-beck@users.noreply.github.com>
(cherry picked from commit 3218599fc3)
2023-10-30 06:14:07 -06:00
Vincent Latombe e6b453b0b4 [JENKINS-72020] Restore ability to reorder clouds (#8492)
* [JENKINS-72020] Reorder clouds

Adding back controls to reorder clouds.

Since clouds order is taken into account for node provisioning, users should be able to reorder them as needed.

* Use tertiary buttons

* Separate screen for reordering

* Include reordering in the cloud list directly (thanks @timja)

* Show the save button after the first reordering

* Separate JS

Only display order column when admin

* Fix reviews

* Remove unused string

* Put drag-and-drop handle in the cloud icon column

* Add missing permission check

* Add a small blurb to clarify what cloud order is used for.

(cherry picked from commit 16bca2e2ea)
2023-10-29 16:47:38 -06:00
dependabot[bot] a58a1ee3f6 Bump org.jenkins-ci.main:remoting from 3148.v532a_7e715ee3 to 3160.vd76b_9ddd10cc (#8600)
Bump org.jenkins-ci.main:remoting

Bumps [org.jenkins-ci.main:remoting](https://github.com/jenkinsci/remoting) from 3148.v532a_7e715ee3 to 3160.vd76b_9ddd10cc.
- [Release notes](https://github.com/jenkinsci/remoting/releases)
- [Changelog](https://github.com/jenkinsci/remoting/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jenkinsci/remoting/commits)

---
updated-dependencies:
- dependency-name: org.jenkins-ci.main:remoting
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

(cherry picked from commit aea86c4b81)
2023-10-28 22:35:14 -06:00
Markus Winter c67690a02c [JENKINS-72170] fix nested hetero-list entries with mixture of inputs and buttons (#8602)
* [JENKINS-72170] fix for nested-hetero-list entries

when a plugin defines the hetero-list elements on its own and still uses
an <input type="button"> element and an inner element is already using
a hetero-list with a <button> element, then the old input wasn't
converted to a button as the inner button was found first.
Avoid this by converting all inputs to buttons before actually looking
up the button.

Recreate the hetero-list.js file to avoid the "No such adjunct found"
warning message

* remove hetero-list.js again

(cherry picked from commit 97dde8f184)
2023-10-28 20:02:53 -06:00
Daniel Beck 7eb9b9ed1a [JENKINS-71252][JENKINS-70793] Multiple form validation fixes (#8422)
* [JENKINS-71252] Show form validation for hidden elements

* [JENKINS-70793] Clear all validation output on update

---------

Co-authored-by: Daniel Beck <daniel-beck@users.noreply.github.com>

(cherry picked from commit 012fa00451)
2023-10-28 20:02:16 -06:00
Olivier Lamy 25949ac665 [JENKINS-72156] Upgrade to Winstone 6.14 which contains an upgrade to Jetty 10.0.17 (#8587)
Upgrade to Winstone 6.14 which contains an upgrade to Jetty 10.0.17

Signed-off-by: Olivier Lamy <olamy@apache.org>

(cherry picked from commit 8792ea07e4)
2023-10-28 20:00:45 -06:00
Vincent Latombe 75f8fcc5b2 [JENKINS-71937] Fix deprecated `Slave` constructor (#8564)
[JENKINS-71937] Fix deprecated Slave constructor

Got broken in https://github.com/jenkinsci/jenkins/pull/8395

Co-authored-by: Basil Crow <me@basilcrow.com>

(cherry picked from commit 6fdfdd01c6)
2023-10-28 20:00:05 -06:00
Mark Waite b114fa6684 Towards 2.426.1 2023-10-28 16:53:29 -06:00
Jenkins Release Bot 7d2b484b88 [maven-release-plugin] prepare for next development iteration 2023-10-03 13:02:04 +00:00
Jenkins Release Bot 940fc05125 [maven-release-plugin] prepare release jenkins-2.426 2023-10-03 13:01:53 +00:00
dependabot[bot] 10324ab958
Bump access-modifier.version from 1.32 to 1.33 (#8551)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-02 18:27:56 -07:00
dependabot[bot] 7180f11242
Bump bridge-method-injector.version from 1.28 to 1.29 (#8552)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-02 18:27:45 -07:00
Jesse Glick 5d1cde72ab
Allow location of `queue.xml` to be overridden (#8531) 2023-10-02 17:23:07 -06:00
Abhishek Maity ce7ee8be4b
add gitter link (#8539)
* missing 'alt' attribute added

* missing 'alt' attribute added

* replaced 'new URL' to 'new URI' per Java 11 target codebase

* Revert "replaced 'new URL' to 'new URI' per Java 11 target codebase"

This reverts commit aeef4c1e4b.

* add jenkins gitter chat link at README.md
2023-10-02 17:21:19 -06:00
Tim Jacomb 88a8b3df54
Tweak changelog guidance in PR template (#8553)
* Tweak changelog guidance in PR template

* Update .github/PULL_REQUEST_TEMPLATE.md
2023-10-02 17:19:19 -06:00
dependabot[bot] ab0dbefb2d
Bump org.jenkins-ci:jenkins from 1.105 to 1.106 (#8550)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-02 12:55:57 -07:00
dependabot[bot] d32b367e9e
Bump asm.version from 9.5 to 9.6 (#8545)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-02 12:52:15 -07:00
Basil Crow 725f8f3f2a
Fix encoding of Brazilian Portuguese localization (#8549) 2023-10-02 12:14:12 -07:00
Mark Waite acd81964c0
Warn users of old Java version 18 months before end of life (#8543) 2023-10-02 11:57:45 -07:00
dependabot[bot] cefeb316b6
Bump org.jenkins-ci.plugins:credentials from 1271.v54b_1c2c6388a_ to 1290.v2e5b_13eb_b_127 (#8548)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-02 11:34:36 -07:00
dependabot[bot] cfa74374e2
Bump com.puppycrawl.tools:checkstyle from 10.12.3 to 10.12.4 (#8547)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-02 11:32:33 -07:00
dependabot[bot] ccda314461
Bump io.jenkins.plugins:plugin-util-api from 3.3.0 to 3.4.0 (#8538)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-02 11:11:49 -07:00
dependabot[bot] a7befecbfd
Bump org.jenkins-ci.plugins:display-url-api from 2.3.9 to 2.200.vb_9327d658781 (#8536)
Bump org.jenkins-ci.plugins:display-url-api

Bumps [org.jenkins-ci.plugins:display-url-api](https://github.com/jenkinsci/display-url-api-plugin) from 2.3.9 to 2.200.vb_9327d658781.
- [Release notes](https://github.com/jenkinsci/display-url-api-plugin/releases)
- [Changelog](https://github.com/jenkinsci/display-url-api-plugin/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jenkinsci/display-url-api-plugin/commits)

---
updated-dependencies:
- dependency-name: org.jenkins-ci.plugins:display-url-api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-02 15:30:55 +02:00
renovate[bot] 52aae28c4d
Update dependency postcss-scss to v4.0.9 (#8541)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-02 09:44:24 +01:00
renovate[bot] 16d29244d9
Update dependency postcss to v8.4.31 (#8540)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-02 09:44:14 +01:00
renovate[bot] 09feb31c93
Update dependency node to v18.18.0 (#8537)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-02 09:40:37 +01:00
Tim Jacomb e37ef3a8e6
[JENKINS-70906] Remove prototype from core (#7781)
* Remove Ajax.Request from breadcrumbs

* Remove Ajax.Request from build-timeline-widget

* WIP

* Use crumb API for setting up crumb

* Use existing semantics

* Fix build button column

* Add comment explaining why catch is added

* Use post and crumb for combobox

* Lint fix

* More fixes

* Fixes

* Fix

* Fix validate button

htmlunit was a pain...

* Lint fix

* Fix URICheckEncodingMonitor

* Add a user experimental flag to run Jenkins without Prototype.js

* Adapt select.js

* Fix parameter support

* JENKINS-70922 Remove Prototype Ajax.Request usage from select.js

* Lint:fix

* More

* lint

* Rebased

* Lint

* Fix bad merge

* JENKINS-70931 Remove Prototype Ajax.Request usages from hudson-behavior.js

Co-authored-by: Basil Crow <me@basilcrow.com>

* Fix URICheckEncodingMonitor

* JENKINS-70921 Remove Prototype Ajax.Request usages from link.js

* Remove dead code

* JENKINS-70910 Remove Prototype.Browser usages from hudson-behavior.js

* JENKINS-70947 Remove Prototype $ usage from section_.js

* Prototype removal true

* Remove unneeded test

* Remove hacky test that doesn't work with fetch

* Remove unneeded workaround

* Fix test

* Minor improvements while debugging

* Fix repeatable.js

* JENKINS-71020 Remove Prototype usages from buildTimeTrend_resources.js

* lint

* JENKINS-71020 Remove Prototype usages from buildTimeTrend_resources.js

* Use escapeHTML instead of inlined references

* Fix issues

* JENKINS-70931 Remove Prototype Ajax.Request usages from hudson-behavior.js

Co-authored-by: Basil Crow <me@basilcrow.com>

* Remove hacky test that doesn't work with fetch

* Remove unused checkMethod

* Revert "Revert "JENKINS-70922 Remove Prototype Ajax.Request usage from select.js""

This reverts commit 2cff5b87b5.

* Serialise refills

Co-authored-by: Basil Crow <me@basilcrow.com>

* More reverts

* More merge

* Remove prototype.js

* Remove more references

---------

Co-authored-by: Basil Crow <me@basilcrow.com>
2023-10-01 15:56:56 -06:00
Basil Crow 02502e28b6
Automate Java version recommendation administrative monitor (#8526)
* Automate Java version recommendation administrative monitor

* Improve dates
2023-09-29 10:33:03 -06:00
Jesse Glick 823ab34596
Avoid saving disabled status when deleting a project (#8528) 2023-09-29 10:32:36 -06:00
dependabot[bot] 28239d9faf
Bump org.jenkins-ci.main:jenkins-test-harness from 2064.vcd3b_b_8f3f2b_a_ to 2085.va_c531db_287b_d (#8535)
Bump org.jenkins-ci.main:jenkins-test-harness

Bumps [org.jenkins-ci.main:jenkins-test-harness](https://github.com/jenkinsci/jenkins-test-harness) from 2064.vcd3b_b_8f3f2b_a_ to 2085.va_c531db_287b_d.
- [Release notes](https://github.com/jenkinsci/jenkins-test-harness/releases)
- [Changelog](https://github.com/jenkinsci/jenkins-test-harness/blob/master/docs/CHANGELOG-OLD.md)
- [Commits](https://github.com/jenkinsci/jenkins-test-harness/commits)

---
updated-dependencies:
- dependency-name: org.jenkins-ci.main:jenkins-test-harness
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-29 10:32:01 -06:00