Commit Graph
22073 Commits
Author SHA1 Message Date
af09d67bb4 [JENKINS-69853] User experimental flags (#7299)
* [JENKINS-69853] User experimental flags

* Applying feedbacks from Tim

* Improve default wording + padding + title

* Remove the "UI"

* Correct Spotbugs

---------

Co-authored-by: Alexander Brandes <mc.cache@web.de>
Co-authored-by: Tim Jacomb <21194782+timja@users.noreply.github.com>
2023-03-12 10:52:04 +01:00
6c076b99bf [JENKINS-69955] Make websocket connection idleTimeout configurable (#7670)
* [JENKINS-69955] Make websocket connection idleTimeout configurable and adjust the default

* [JENKINS-69955] Do not cache JettyWebSocketServerContainer

* [JENKINS-69955] AtomicBoolean is not needed

* [JENKINS-69955] remove unused import

---------

Co-authored-by: Tim Jacomb <21194782+timja@users.noreply.github.com>
Co-authored-by: Alexander Brandes <mc.cache@web.de>
2023-03-12 10:44:53 +01:00
Jesse Glick 3a07a2c2f8 Make StopBuildsCommand work even if the last build is not running (#7679) 2023-03-10 22:04:37 +00:00
Jan Faracik a1f732f218 Add copy button to Jenkins home directory (#7678) 2023-03-10 22:04:20 +00:00
Jan FaracikandTim Jacomb 714574cf74 Simplify settings names (#7661)
Co-authored-by: Tim Jacomb <21194782+timja@users.noreply.github.com>
2023-03-10 22:03:39 +00:00
Daniel Beck acc8d15022 It's called update site, not central plugin repository (#7697) 2023-03-10 22:03:12 +00:00
Jenkins Release Bot 89d37d8ee3 [maven-release-plugin] prepare for next development iteration 2023-03-06 23:01:26 +00:00
Jenkins Release Bot 2fe98001f3 [maven-release-plugin] prepare release jenkins-2.394 2023-03-06 23:01:11 +00:00
Daniel Beck 8ec86287cb Derestrict VirtualFile#list(String,String,boolean) again 2023-03-05 15:23:59 +01:00
Yaroslav Afenkin ecccc26a39 Merge branch 'security-master' 2023-02-28 17:03:58 +02:00
Jenkins Release Bot e41aeaacf4 [maven-release-plugin] prepare for next development iteration 2023-02-28 13:15:16 +00:00
Jenkins Release Bot 9044b4379c [maven-release-plugin] prepare release jenkins-2.393 2023-02-28 13:15:05 +00:00
Mark Waite f0be0ca01f [JENKINS-21052] Warn user that the copy button requires HTTPS (#7665)
Warn user that the copy button requires HTTPS

Users that run Jenkins over an unencrypted (HTTP) connection will see
the copy button, but it does not perform a copy.  Browsers will only
allow access to the clipboard if the page is in a secure context.

With this change, the text that is displayed when the user clicks the
copy button from an insecure context will alert the user that copy
requires a secure connection.

https://stackoverflow.com/questions/400212/how-do-i-copy-to-the-clipboard-in-javascript
describes the alternatives in more detail.

https://issues.jenkins.io/browse/JENKINS-21052 reported that the copy
button does not work.  I've confirmed that it works when using an HTTPS
connection.
2023-02-26 18:48:11 -05:00
Antoine NeveuxandDaniel Beck 93c8e7663e [JENKINS-70662] Disable browser form validation from submit button (#7668)
* [JENKINS-70662] Disable browser form validation from submit button

* Update core/src/main/resources/lib/form/submit.jelly

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

---------

Co-authored-by: Daniel Beck <1831569+daniel-beck@users.noreply.github.com>
2023-02-25 05:15:39 -05:00
Mark Waite a7b36ef111 [JENKINS-70599] restore installNecessaryPlugins redirect destination (#7653)
* Test redirect from installNecessaryPlugins

Jenkins LTS versions prior to 2.375.1 redirected to an existing URL.
Jenkins 2.375.1 - 2.375.3 redirect to a non-existent URL.

Test that the old behavior is restored.

* [JENKINS-70599] restore installNecessaryPlugins redirect destination

The installNecessaryPlugins API end point previously redirected to the
"/updateCenter" URL.  When the side bar was added to the plugin
manager, the redirect was changed to "/updates".  Unfortunately, there
is no page at "/updates", while there is a page at "/updateCenter".

This restores the redirect for the installNecessaryPlugins API call.

If the redirect is not restored, calls to the API that follow the redirect
fail with a page not found (HTTP 404).

I did not find any callers to that API from inside Jenkins core.

Change introduced in 6db88c3f5b

* Use default HttpClient version

The HttpClient documentation notes that if the default is selected but
not supported, then the client will automatically downgrade to HTTP 1.1.
Browsers only support HTTP 2 over TLS, but that's not a requirement of
the HTTP 2 specification.

https://http2.github.io/faq/#does-http2-require-encryption

* Adjust test timeouts based on actual test results

Tests on ci.jenkins.io showed that installNecessaryPluginsTest completes
as follows:

* 9.4 seconds Windows JDK 17
* 0.8 seconds Linux JDK 11
* 1.0 seconds Linux JDK 17
* 1.1 seconds Linux JDK 19

With those timings, it seems reasonable to set the crumb request to
timeout in not more than 7 seconds and the plugin installation request
to timeout in not more than 20 seconds.  That will waste a little less
time in execution if there is a problem and still leaves room for low
performance systems.

* Redirect to newer pluginManager URL
2023-02-25 01:45:23 -05:00
Kevin-CB 554587b06d [SECURITY-3058] 2023-02-23 07:59:19 +00:00
Kevin-CB d034626fd5 [SECURITY-2399] 2023-02-23 07:59:13 +00:00
Yaroslav Afenkin 59ac866d99 [SECURITY-3037] 2023-02-23 07:59:06 +00:00
Daniel Beck b70f4cb589 [SECURITY-3030] 2023-02-23 07:59:00 +00:00
Kevin-CB f39c11fa27 [SECURITY-2823] 2023-02-23 07:58:53 +00:00
Jeff Thompson 40663588ee [SECURITY-2120] 2023-02-23 07:58:46 +00:00
Jeff ThompsonandKevin-CB 80452662b3 [SECURITY-1807]
Co-authored-by: Kevin-CB <kguerroudj@cloudbees.com>
2023-02-23 07:58:40 +00:00
Mustafa Ulu af424b5e64 Turkish localization updates (#7662)
Turkish localisation updates
2023-02-22 16:40:08 +01:00
Jenkins Release Bot a3f31145e6 [maven-release-plugin] prepare for next development iteration 2023-02-21 13:13:46 +00:00
Jenkins Release Bot 936e9f83db [maven-release-plugin] prepare release jenkins-2.392 2023-02-21 13:13:34 +00:00
a6ff3afd42 Added copy to clipboard button to agent launch snippets (#7625)
* Added Copy to clipboard

* Update main.jelly

* Remove trailing spaces

* Update main.jelly

* Update main.jelly

* One copy button per region

Creates a heading over the region to be copied and create a set of
instructions for Unix agents with a different set of instructions
for Windows.  The `curl.exe` call must be different on Windows due to
PowerShell having a `curl` cmdlet that is not compatible with command line
`curl.exe`.

Passed my interactive testing with a session in a secure connection.

* Remove obsolete spaces

---------

Co-authored-by: Mark Waite <mark.earl.waite@gmail.com>
Co-authored-by: Alexander Brandes <mc.cache@web.de>
2023-02-20 07:13:10 -07:00
Alexander Brandes 6c765e1dda Correct tag declaring required arguments in Jelly (#7644)
Fix wrong 'required' tag for Jelly arguments
2023-02-17 07:30:37 -07:00
Jenkins Release Bot 62c2fbcc7a [maven-release-plugin] prepare for next development iteration 2023-02-14 12:44:07 +00:00
Jenkins Release Bot f8e69628ac [maven-release-plugin] prepare release jenkins-2.391 2023-02-14 12:43:56 +00:00
Jesse Glick 3ca2880324 Default CLI mode to -webSocket (#7605)
* Default CLI mode to `-webSocket`

* Recommend `-http` only if needed

* Simplifying `CLIActionTest`

* Avoid an extra space in proposed command if not using `-http`
2023-02-14 09:56:21 +01:00
EBIBO c3f9161755 [JENKINS-70139] booleanRadio uses non-unique ID (regression in 2.335) (#7631)
[JENKINS-70139] booleanRadio uses non-unique ID
2023-02-14 09:55:01 +01:00
19896b3034 Updating the descriptions for the escape/encode functions (#7606)
* Updating the descriptions for the escape/encode functions

Adding explanations and examples to the encode and escape functions

* Updated description for encode 

I have edited some of the descriptions to bring them in line with the documentation over on husdon.Util

* Changed leading and trailing spaces on encode

I left one space at the end and added a note to say how a blank space is rendered

* Removed trailing whitespace to satisfy checkstyle

* Preserve formatting and escape HTML tags

* Update core/src/main/java/hudson/Functions.java

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

* Changed escaping on examples so they rendered properly in the javadoc

I was tempted to use {@literal &amp;} notation but this added blank spaces, making the examples look strange.  Instead I have used the &amp;amp; notation.

* Update core/src/main/java/hudson/Functions.java

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

* Update core/src/main/java/hudson/Functions.java

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

* Update core/src/main/java/hudson/Functions.java

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

* Update core/src/main/java/hudson/Functions.java

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

* Update core/src/main/java/hudson/Functions.java

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

* Update core/src/main/java/hudson/Functions.java

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

---------

Co-authored-by: Alexander Brandes <mc.cache@web.de>
Co-authored-by: Daniel Beck <1831569+daniel-beck@users.noreply.github.com>
2023-02-09 11:35:55 +01:00
Vincent Latombe 8b64efc5a2 Fix computer links in some cases (#7608)
* Computer links are incorrect in some cases

https://github.com/jenkinsci/jenkins/pull/6907 computes computer urls based on
privilege, which can cause inconsistent breadcrumb update as a result.

$jenkinsUrl/manage/computer/ is typically the URL you access when
browsing "Manage Jenkins > Configure Nodes and Clouds"

vs.

$jenkinsURl/computer/ which can be accessed by clicking on "Build
Executor Status"

* Fix RSSTest
2023-02-09 11:31:40 +01:00
Alexander Brandes 4b8161989e Use 'one-column' design for fingerprint view (#7634) 2023-02-09 11:29:19 +01:00
Jenkins Release Bot af5a649a47 [maven-release-plugin] prepare for next development iteration 2023-02-07 13:08:02 +00:00
Jenkins Release Bot 3c46e8665f [maven-release-plugin] prepare release jenkins-2.390 2023-02-07 13:07:49 +00:00
Jesse Glick 27358385b7 Messaging tweaks for InstallUncaughtExceptionHandler (#7622) 2023-02-06 15:01:00 -07:00
Alexander Brandes 5dcae0b48f [JENKINS-60866] Un-inline setup wizard root URL js (#7619)
* Un-inline setup wizard root URL

* Fix linting
2023-02-06 15:00:49 -07:00
Daniel BeckandDaniel Beck 6b4dd606bf [JENKINS-70533] Skip submitting telemetry when exception is thrown (#7618)
Co-authored-by: Daniel Beck <daniel-beck@users.noreply.github.com>
2023-02-06 15:00:36 -07:00
Jesse GlickandDaniel Beck 4028512e3f t:progressiveText should tolerate 5xx HTTP errors (#7614)
* `t:progressiveText` should tolerate 5xx HTTP errors

* Applying @daniel-beck’s suggestion from https://github.com/jenkinsci/jenkins/pull/7614#issuecomment-1410378581

* Better handle a 404 https://github.com/jenkinsci/jenkins/pull/7614#issuecomment-1411755404

* Restoring trailing slash in `fallbackUrl` to match original behavior, lest there be another redirect

---------

Co-authored-by: Daniel Beck <1831569+daniel-beck@users.noreply.github.com>
2023-02-06 15:00:11 -07:00
Jesse Glick e0aee591d0 [JENKINS-70531] Apply timeout on WebSocket write operations (#7596)
* Apply timeout on WebSocket write operations
* https://github.com/jenkinsci/remoting/pull/621 released
2023-02-05 07:19:09 -07:00
Jenkins Release Bot 186151ed9e [maven-release-plugin] prepare for next development iteration 2023-01-31 12:47:54 +00:00
Jenkins Release Bot abdae6c271 [maven-release-plugin] prepare release jenkins-2.389 2023-01-31 12:47:44 +00:00
Vincent Latombe f340ed7e12 copyNames has been removed a long time ago, use showCopyOption instead. (#7609)
ComputerSet/new.jelly was still using this deprecated field
2023-01-30 16:14:57 +01:00
Martin PokornyandTim Jacomb 10382b1629 [JENKINS-70394] Move 'set node temporarily offline/online' buttons to app-bar (#7577)
* Move 'set node temporarily offline/online' buttons to app-bar

As describe in JENKINS-70394 are the to set the node temp. online/offline not clickable, because the offline-cause warning covers this buttons.

* PR review

* fix node name on built-in node page

* Move additional controls to app-bar

Co-authored-by: Tim Jacomb <timjacomb1@gmail.com>
2023-01-26 10:28:50 +01:00
dependabot[bot]andBasil Crow 168da3b199 Bump stapler.version from 1756.vec9071748061 to 1766.v4e428020d8a_f (#7602)
* Bump stapler.version from 1756.vec9071748061 to 1766.v4e428020d8a_f

Bumps `stapler.version` from 1756.vec9071748061 to 1766.v4e428020d8a_f.

Updates `stapler` from 1756.vec9071748061 to 1766.v4e428020d8a_f
- [Release notes](https://github.com/jenkinsci/stapler/releases)
- [Changelog](https://github.com/jenkinsci/stapler/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jenkinsci/stapler/commits)

Updates `stapler-groovy` from 1756.vec9071748061 to 1766.v4e428020d8a_f
- [Release notes](https://github.com/jenkinsci/stapler/releases)
- [Changelog](https://github.com/jenkinsci/stapler/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jenkinsci/stapler/commits)

---
updated-dependencies:
- dependency-name: org.kohsuke.stapler:stapler
  dependency-type: direct:production
- dependency-name: org.kohsuke.stapler:stapler-groovy
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* fixups

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Basil Crow <me@basilcrow.com>
2023-01-26 10:09:20 +01:00
Vincent Latombe 9d73b84158 Compute agents log directory consistently with other tasks (#7595)
This ensures any custom value provided by system property hudson.triggers.SafeTimerTask.logsTargetDir (or any future way to change logs location) is honored including for agents
2023-01-26 10:08:23 +01:00
Jesse Glick 932a632812 Introduce SubTask.getOwnerExecutable (#7599)
* Introduce `SubTask.getOwnerExecutable`

* Javadoc
2023-01-26 10:07:45 +01:00
YaroslavandYaroslav Afenkin 5503dd1165 Encode cloud name in Cloud#getUrl (#7573)
Co-authored-by: Yaroslav Afenkin <yaroslavafenkin@users.noreply.github.com>
2023-01-25 09:44:51 +01:00
Jenkins Release Bot 632700b8bb [maven-release-plugin] prepare for next development iteration 2023-01-24 12:46:39 +00:00