Commit Graph
32590 Commits
Author SHA1 Message Date
Jesse Glick 5c52272d01 ConsoleNote.INSECURE may as well disable even checks of MACs which _do_ exist. Makes it easier to look at other (trusted!) people’s console logs. 2019-03-19 11:15:47 -04:00
Long Ngn cf56ff9985 Remove TODO comment in TcpSlaveAgentListener.java 2019-03-19 17:24:37 +07:00
Long Ngn 0bc11ee894 Update javadoc in TcpSlaveAgentListener.java 2019-03-19 16:59:53 +07:00
Josh Soref f71af8be1a [JENKINS-25046] Drop sessions when logging out
A user reported a 431 Header Fields Too Large
The cause was lots of accumulated JSESSION records in the user's cookie.

As an admin, I suggested logging out, because, ideally, that should clear the user's
cookies.

Except it didn't do that.

Now it should...
2019-03-18 17:26:50 -04:00
ThomasPerkins1123 461f7ea412 Add unit tests for hudson.cli.HexDump (#4058)
* Add unit tests for hudson.cli.HexDump

These tests were written using Diffblue Cover.

* Changed byte arrays to work for windows
2019-07-03 16:32:57 +02:00
Kohsuke Kawaguchi a81d72420b [maven-release-plugin] prepare for next development iteration 2019-06-30 19:33:50 -07:00
Kohsuke Kawaguchi 49c6f89d00 [maven-release-plugin] prepare release jenkins-2.183 2019-06-30 19:33:39 -07:00
Josh Soref c7ef476fa0 IntelliJ/Java: Duplicate code -- Refactored as ExtensionFinder.getClassFromIndex (#4079)
* IntelliJ/Java: Duplicate code -- Refactored as ExtensionFinder.getClassFromIndex

* Adding braces around throw new AssertionError
2019-06-28 21:59:02 +02:00
rudolfwalter a57e3921ed [JENKINS-58240] - Plugins should be able to provide onBlur for codemirror textarea. (#4046) 2019-06-28 21:58:20 +02:00
Oleg Nenashev 0bb77fa87f Merge pull request #4072 from lorainsu/master
[JENKINS-58041] Add support for IPv6 when getting "Jenkins URL"
2019-06-28 21:57:13 +02:00
Nguyen Le Vu Long 05d9675d85 [JENKINS-50095] Update X-Remoting-Minimum-Version header in /tcpSlaveAgentListener 2019-03-18 23:36:33 +07:00
Wadeck Follonier ff52beb5e2 [JENKINS-56114] Correct behavior for Windows Server 2016 with Docker (#3914)
* [JENKINS-56114] Correct behavior for Windows Server 2016 with Docker
- also adjust the symlink escape hatch

* Correct missing space + retrigger build

* Improve performance with a check on the logger level

* Run the specific code only under Windows

* Rename the method as it's used only for Windows

(cherry picked from commit 5562b2fec6)
2019-03-18 09:35:48 +01:00
Mit Naria aad0d563d0 [FIX JENKINS-43218] Fix Fingerprint.toString() (#3910)
* [FIX JENKINS-43218] Fix Fingerprint.toString()

1. Fix Fingerprint.toString() method when
   variable usages = null .

Signed-off-by: Mit Naria <mit4dev@gmail.com>

* [FIX JENKINS-43218] Fix Fingerprint.toString()

1. Fix Fingerprint.toString() method when
   variable usages = null .

* [JENKINS-43218] - Retrigger the build after the Java 11 fixes on ci.jenkins.io

(cherry picked from commit 399c8ba40a)
2019-03-18 09:23:40 +01:00
Kohsuke Kawaguchi 6f8a6849d7 [maven-release-plugin] prepare for next development iteration 2019-03-14 09:50:20 -07:00
Kohsuke Kawaguchi 4e3dc063c1 [maven-release-plugin] prepare release jenkins-2.164.1 jenkins-2.164.1 2019-03-14 09:50:13 -07:00
Robert Rabe 807c148d43 JENKINS-56554 Add run parameter filter to API response 2019-03-14 09:55:16 +01:00
Kohsuke Kawaguchi 1c9eb43283 [maven-release-plugin] prepare for next development iteration 2019-03-10 22:55:12 -07:00
Kohsuke Kawaguchi 1e48792e61 [maven-release-plugin] prepare release jenkins-2.168 jenkins-2.168 2019-03-10 22:55:05 -07:00
Adrien Lecharpentier d9c20b68af Correct DownloadService TimeUnit mix on lastAttempt (#3928)
* Revert DownloadService TimeUnit mix on lastAttempt

Downloadable.lastAttempt is set in milliseconds but the PR-3913 change
the test to toMillis(millis+seconds)<millis.

Thank you @pzygielo for this catch.

* Fix DownloadService time unit usage

Thank you @daniel-beck

Co-Authored-By: alecharp <adrien.lecharpentier@gmail.com>

* Fix DownloadService missing import
2019-03-10 20:44:10 +01:00
Wadeck Follonier dd13c42d28 Correct small JS bug
Context: 
The "Manage Legacy API Token usage" page, used for migrating the legacy API Token.

Problem: 
If you click on a line, the checkbox is checked and the line is highlighted. But if you click on the checkbox, the behavior should be the same. This is not the case for all the lines, except the last one.

Root cause:
In the code, I used a `var` inside a loop. Due to the JS behavior, the `var` are not scoped to their "block", but to their "function block". That results in the `onCheckChanged(checkBox)`, the checkBox change it's value, due to the closure, that keep the reference to a variable that is changed.

Solution:
Either using `let` instead of `var` or using the `this` that corresponds to the checkbox in this case.
2019-03-09 12:20:19 +01:00
Josh Soref c399701421 Revert switching to array utils
This incorrect change was introduced as part of #3913
2019-03-08 14:19:15 -05:00
Daniel Beck 8c276421fb Merge pull request #3926 from daniel-beck/JENKINS-24513-jobs-only
[JENKINS-24513] Only warn in case of actual jobs
2019-03-08 15:46:35 +01:00
Daniel Beck 14fd7a779a [JENKINS-24513] Only warn in case of actual jobs 2019-03-08 11:16:47 +01:00
Zbynek Konecny 6bed423b1f [JENKINS-56398] Mobile friendly login / load / restart screens (#3923)
* JENKINS-56398 Mobile friendly login / load / restart screens

* [JENKINS-56398] increase line-height of heading

* [JENKINS-56398] mobile friendly layout for signup form
2019-03-08 10:20:30 +01:00
Wadeck Follonier 5562b2fec6 [JENKINS-56114] Correct behavior for Windows Server 2016 with Docker (#3914)
* [JENKINS-56114] Correct behavior for Windows Server 2016 with Docker
- also adjust the symlink escape hatch

* Correct missing space + retrigger build

* Improve performance with a check on the logger level

* Run the specific code only under Windows

* Rename the method as it's used only for Windows
2019-03-08 10:19:07 +01:00
Oleg Nenashev fcc2a66017 Merge pull request #3913 from jsoref/java-cleanup
Java cleanup
2019-03-08 10:18:41 +01:00
Daniel Beck ef958e41f8 [JENKINS-24513] Add access control for builds admin monitor (#3919)
* [JENKINS-24513] Add access control for builds admin monitor

* Fix potential encoding related issue
2019-03-08 10:18:07 +01:00
James Nord a43a167a05 Merge pull request #3146 from jtnord/StringPVVCRT
return a String from StringParameterValue.getValue()
2019-03-06 15:44:41 +00:00
James Nord 01006d1c18 return a String from StringParameterValue.getValue()
Make use of covariant return types to return a String rather than an
Object.
2019-03-04 14:23:45 +00:00
Josh Soref 301730ca7b [JENKINS-56379] Absorb pipeline-model-definition symbol-hetero-list.jelly into hetero-list.jelly
Support pipeline-model-definition-plugin: symbol-hetero-list use case

https://github.com/jenkinsci/pipeline-model-definition-plugin/blob/0783180b5d1ed6a398792b37ea46e0aa33ef2b90/pipeline-model-definition/src/main/resources/org/jenkinsci/plugins/pipeline/modeldefinition/generator/DirectiveGenerator/symbol-hetero-list.jelly#L126-L129
2019-03-03 23:07:46 -05:00
Josh Soref eaa5ce0799 [JENKINS-51872] Fix tool dropdown 2019-03-03 22:47:46 -05:00
Kohsuke Kawaguchi 4d54883e07 [maven-release-plugin] prepare for next development iteration 2019-03-03 19:03:29 -08:00
Kohsuke Kawaguchi c3cd672a57 [maven-release-plugin] prepare release jenkins-2.167 jenkins-2.167 2019-03-03 19:03:21 -08:00
Daniel Beck ca95f1c824 Merge branch 'master' into security-master 2019-03-03 01:08:57 +01:00
Daniel Beck 27e0457fdf Merge commit '0dfe346c9c1ccfcc2cca54c64f2850a2a5513d1a' of git://github.com/jenkinsci/jenkins 2019-03-03 01:06:22 +01:00
Daniel Beck 5f2b3d68fa Merge branch 'security-stable-2.150' into security-master 2019-03-03 00:47:02 +01:00
Daniel Beck e639ba55e1 Merge branch 'stable-2.150' 2019-03-03 00:45:12 +01:00
Oleg Nenashev 0b60d00f7e Merge pull request #3918 from jsoref/JENKINS-42443
[JENKINS-42443] Fix spinner interaction with tabbar.less
2019-03-02 16:26:29 +01:00
Daniel Beck c43610cdb7 Add message to the build log when a build is running as SYSTEM (#3908)
* Add message to the build log when a build is running as SYSTEM

* Match previous log message
2019-03-01 21:05:31 +01:00
Daniel Beck dcf354ce78 Merge pull request #3917 from Wadeck/CORRECT_LEGACY_API_TOKEN_MONITOR_LOG
Correct the Logger name for Legacy API Token monitor
2019-02-28 15:18:24 +01:00
Josh Soref 8825451f67 spelling: dependent (#3821)
* spelling: dependent

Writers following British writing convention often confuse dependent and dependant. Those following US writing convention have an easier time with these words because Americans do not use dependant.

A dependant is a person who is dependent on someone else. (For example, a child is dependent on its parents. Therefore, a child is a dependant of its parents.)

Jenkins does not deal with people, thus the UK rule which is confusing does not apply.

* Add deprecated shims
2019-02-28 14:12:37 +01:00
Josh Soref 38949730cf [JENKINS-42443] Fix spinner interaction with tabbar.less 2019-02-28 01:24:30 -05:00
Daniel Beck 729303a605 Merge pull request #3916 from Wadeck/JENKINS-52818_add_since
[JENKINS-52818] Add the missing @since
2019-02-27 18:27:19 +01:00
Wadeck Follonier 73609ddf59 Change the Logger name for Legacy API Token monitor 2019-02-27 12:05:03 +01:00
Wadeck Follonier 95c2575062 [JENKINS-52818] Add the missing @since
- avoid git-archeology to find when the interface was added
2019-02-27 11:34:56 +01:00
Daniel Beck ad4a4efa98 Surround lookup with try/catch and add logging 2019-02-26 22:05:22 +01:00
Daniel Beck 09fa7dfa3d Restrict MetaLocaleDrivenResourceProvider 2019-02-26 22:03:50 +01:00
Daniel Beck 8284cab105 [JEP-216] Add support for localizations in dedicated plugins 2019-02-26 22:01:54 +01:00
Josh Soref cfbef24071 switch to ArrayUtils 2019-02-26 12:21:06 -05:00
Josh Soref 0ad7d00099 Switch to using TimeUnit.UNIT.toUnit(...) 2019-02-26 12:13:41 -05:00