Commit Graph
28477 Commits
Author SHA1 Message Date
Jesse Glick 984c01cebf Fixing hint for Jenkins.getInstance. 2019-07-15 14:33:01 -04:00
Kohsuke Kawaguchi 6fea9b24d8 [maven-release-plugin] prepare for next development iteration 2019-07-14 12:23:24 -07:00
Kohsuke Kawaguchi a4c9cba4f3 [maven-release-plugin] prepare release jenkins-2.185 jenkins-2.185 2019-07-14 12:23:13 -07:00
Alexey 701d00c9ed Set screenResolution cookie to root path (#4103)
`YUI.util.Cookie` set `screenResolution` cookie for every visited path.
2019-07-12 15:24:12 +02:00
Ivan Fernandez Calvo 3af38487d1 [JENKINS-43610] use trilead-api 1.0.4 (#4109) 2019-07-12 15:23:54 +02:00
based2 67fe12b342 update commons codec from 1.9 to 1.12 (#4052) 2019-07-12 11:33:07 +02:00
Jeff Thompson 31658d0f70 [JENKINS-53322] Pre-work for removing dom4j fork. (#4089)
Changes to enable Jenkins to use either the standard, current dom4j release or the Jenkins-custom fork. This allows us to separately remove the fork and reference the standard one.
2019-07-12 11:32:50 +02:00
Jesse Glick ece68cdd68 Merge pull request #3982 from jglick/build-symlink-JENKINS-37862
[JENKINS-37862] Removing build symlink functionality
2019-07-11 15:04:53 -04:00
Jesse Glick 6af78cb11b Merge branch 'master' into build-symlink-JENKINS-37862 2019-07-11 12:30:58 -04:00
Jeff Thompson 8349cebb61 [JENKINS-55945] IllegalStateException trying to get user. (#4107)
This change catches the exception and returns false, invalidating the user session. This behavior is sensible, because if we are unable to validate the user we must assume the session is invalid.
Catching the error at this point reportedly helps with some scenarios and shouldn't cause any further harm.
2019-07-11 17:25:53 +02:00
Jesse Glick b9d507cbcf Also skip detached plugin installation if a *.[jh]pl file exists. (#4100) 2019-07-11 16:55:41 +02:00
Ivan Fernandez CalvoandJesse Glick f76ee6d878 [JENKINS-43610] Split Trilead out from Core (#4085)
* [JENKINS-43610] Split Trilead out from Core

* revert changes on ./core/src/main/resources/jenkins/split-plugin-cycles.txt

* remove JDK version on split-plugins.txt

* bump trilead-api version to 1.0.4

* fix: add trilead-api incremental version to detached plugins

* fix: add consume-incrementals setting to maven

* Update core/src/main/resources/jenkins/split-plugins.txt

Co-Authored-By: Jesse Glick <jglick@cloudbees.com>
2019-07-11 16:54:07 +02:00
Vincent Latombe 1b2cd19a61 [JENKINS-24752] Avoid nodeprovisioner delay after consulting strategies (#4082)
* Avoid nodeprovisioner delay after consulting strategies

* Try another aproach - rate limit the review every second

* Throttle NodeProvisioner#update every second

* Re-indent to limit diff

* Update lastSuggestedReview

* Fix prior merge

* Logging messages

* Supplier

* Ignore additional calls to suggestReviewNow if we have a queued review
2019-07-11 16:53:06 +02:00
Jesse Glick f4364e4ef4 [JENKINS-58362] Need to have only one copy of SystemCommandLanguage among detached plugins (#4099)
* Need to have only one copy of SystemCommandLanguage among detached plugins.

* Removing some cases from LoadDetachedPluginsTest which were sensitive to particular versions of detached plugins and thus hard to maintain.
Already had to do one such change in 84f939cebd and now upgradeFromJenkins2WithNewerDependency began failing after a war/pom.xml change.
2019-07-11 16:50:06 +02:00
Josh Soref 9769092ee0 [JENKINS-57383] add missing cast (#4104) 2019-07-11 16:49:00 +02:00
Matt Sicker 2be390e9ca Fix typo (#4106) 2019-07-10 14:21:00 +02:00
Jesse GlickandOleg Nenashev 2bfded176c Display a warning in the Installed tab if the admin is about to disable or uninstall a detached plugin (#4098)
* Display a warning in the Installed tab if the admin is about to disable or uninstall a detached plugin.

* @since

Co-Authored-By: Oleg Nenashev <o.v.nenashev@gmail.com>
2019-07-09 08:54:15 +02:00
Kohsuke Kawaguchi d37bcb54d9 [maven-release-plugin] prepare for next development iteration 2019-07-07 20:23:36 -07:00
Kohsuke Kawaguchi 406344157b [maven-release-plugin] prepare release jenkins-2.184 jenkins-2.184 2019-07-07 20:23:25 -07:00
Josh Soref a6f5b2b128 Cleanup properties -- don't escape spaces (#4026)
* IntelliJ/Properties(tr): Invalid string escape

Re-encode with utf-8

* IntelliJ/Properties(pt): Invalid string escape (newline)

* IntelliJ/Properties(da): Invalid string escape (newline)

* IntelliJ/Properties(da): Invalid string escape

* IntelliJ/Properties(pt_BR): Invalid string escape

* IntelliJ/Properties(bg): Invalid string escape

* IntelliJ/Properties(pl): Invalid string escape
2019-07-05 15:29:41 +02:00
Oleg Nenashev ab8d33042d Merge pull request #3939 from jsoref/logout-kill-sessions
[JENKINS-25046] Drop cookie sessions when logging out
2019-07-05 15:28:49 +02:00
Ramon Leon 740f9eb3ed [JENKINS-57223] - Java11 ClassNotFoundExceptions Telemetry (#4003)
* Proof of concept catching exceptions for java 11 removed classes

* Add ClassLoader to a lot of places. Backup

* Commenting out wip stuff, change packages, count hits findClass

* Improvements, sending and tests

* Removing the catcher from chain to make funcional tests work

* Removing ignored places and a bit of cleaning

* Cleaning unused code after removing the catcher from the chain

* Remove imports cleaning to avoid extra changes

* Cleaning and explaining comments

* Explaining comments

* fix javadoc

* [JENKINS-57223] Address feedback from Matt Sicker. Improve in concurrency

* [JENKINS-57223] Search on cause and suppressed exceptions and fix on name reported

* [JENKINS-57223] Add cycles control on exceptions and refactor reporting method

* [JENKINS-57223] Add trim to class name comparison

* [JENKINS-57223] Address Oleg's feedback and some improvements

* Avoid sending CNFE when ignored later in code
* Disable when running on Java 8 and a test
* Avoid sending empty events

* [JENKINS-57223] Polish assertion after printing all missing classes in logs

* [JENKINS-57223] Avoid extra if and add curly braces

* [JENKINS-57223] Better comment about time window check
2019-07-05 15:27:55 +02:00
Oleg Nenashev c58a3ccfe8 Merge pull request #4086 from KostyaSha/slaveconstructors
Adjust Deprecation tree according to Slave javadocs.
2019-07-05 15:26:04 +02:00
Oleg Nenashev a0095dc1ee Merge pull request #4096 from jvz/JENKINS-56243
[JENKINS-56243] Ensure user seed saved to session
2019-07-04 14:51:59 +02:00
Tim Jacomb 1684de425e Add fine logging for removing cookies 2019-07-03 14:58:18 -04:00
ThomasPerkins1123 f0363a5739 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
Matt Sicker 92d6063c40 [JENKINS-56243] Improve tests
This validates that the performance regression itself - redundant calls
to loadUserByUsername() - is also fixed besides simply the
implementation details of the user seed and session.

Signed-off-by: Matt Sicker <boards@gmail.com>
2019-07-02 10:59:16 -05:00
Matt Sicker 386dafd7be [JENKINS-56243] Ensure user seed saved to session
This fixes the remember me service to link the user seed to a
corresponding HTTP session. By doing so, this should significantly
reduce the number of calls to loadUserDetails().

Signed-off-by: Matt Sicker <boards@gmail.com>
2019-07-01 16:25:44 -05:00
Kohsuke Kawaguchi 4404c6e662 [maven-release-plugin] prepare for next development iteration 2019-06-30 19:33:50 -07:00
Kohsuke Kawaguchi e84e1ad848 [maven-release-plugin] prepare release jenkins-2.183 jenkins-2.183 2019-06-30 19:33:39 -07:00
Josh Soref 11652016b0 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 5926847d81 [JENKINS-58240] - Plugins should be able to provide onBlur for codemirror textarea. (#4046) 2019-06-28 21:58:20 +02:00
Oleg Nenashev 3424232a5b 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
Oleg Nenashev f0c5108184 Merge pull request #4050 from based2/patch-3
[JENKINS-47127] - Update maven-war-plugin from 3.0.0 to 3.2.3
2019-06-27 17:25:29 +02:00
Oleg Nenashev 82d709b416 Merge pull request #4061 from HuangJY777/JENKINS-49316
[JENKINS-49316] Create Item: OK button disabled until TAB pressed
2019-06-27 17:25:07 +02:00
Gustavo de Souza Bezerra 0e62b68012 [JENKINS-57678] - Change getInstance() (deprecated) to get() (#4042)
* Change getInstance() (deprecated) to get()

* Reverting modifications according review

* Changing for use the variable
2019-06-27 17:24:45 +02:00
Oleg Nenashev fa0ba22dec Merge pull request #4063 from basil/args4j
[JENKINS-57959] Bump args4j from 2.0.31 to 2.33
2019-06-27 17:01:47 +02:00
Raihaan ShouhellandMatt Sicker 71cd2b9680 Make WindowsUtil available for use (#4038)
* Add WindowsUtil into main

* Remove WindowsUtil from test

* Change based on feedback

Co-Authored-By: Matt Sicker <boards@gmail.com>

* Move and improve comments

* Javadoc fixes
2019-06-24 14:19:31 +02:00
Kohsuke Kawaguchi 57a3268afb [maven-release-plugin] prepare for next development iteration 2019-06-23 20:16:11 -07:00
Kohsuke Kawaguchi b39c8203f7 [maven-release-plugin] prepare release jenkins-2.182 jenkins-2.182 2019-06-23 20:15:57 -07:00
Mustafa Ulu a5e29cb5cf [JENKINS-57922] - Ability to specify target directory for translation-tool.pl (#4083)
* [JENKINS-57922] - Ability to specify output directory for
translation-tool.pl

* Prevent printing everything on same line if values are empty
2019-06-22 22:45:43 +02:00
mawinter69 f23b93a6d5 [JENKINS-57855] read-only flag of folders on windows (#4059)
* [JENKINS-57855] read-only flag of folders on windows

On windows the current way of removing the read only flag is not working
for folders.
Using the Files api this can be solved.

* code formatting
2019-06-22 22:45:03 +02:00
Oleg Nenashev cd5d67d489 Merge pull request #4087 from jeffret-b/remoting/3.33
Upgrade to 3.33 version of Remoting.
2019-06-22 22:44:40 +02:00
Oleg Nenashev 708bbdc9f1 Merge pull request #4081 from jglick/NodeProvisioner-logging
Improved logging for NodeProvisioner
2019-06-22 08:45:26 +02:00
Jeff Thompson cf23f8f365 Upgrade to 3.33 version of Remoting.a 2019-06-20 13:31:07 -06:00
Kanstantsin Shautsou 04aa4f1763 Adjust Deprecation tree according to Slave javadocs.
Slave constructor wants implementations to use setters,
but AbstractCloudSlave has no corresponding constructor.
2019-06-20 17:27:59 +03:00
Josh Soref 1d0d8069d0 Use a proper example domain (#4074)
See RFC6761
2019-06-20 14:10:45 +02:00
Jesse Glick ee9edf8fbb Improved logging for NodeProvisioner. 2019-06-18 16:35:45 -04:00
lorainsu 0961d7ab71 [JENKINS-58041] Add support for IPv6 when getting "Jenkins URL"<br><br>Default "Jenkins URL" do not support IPv6 address。<br>For example my Jenkins server address is "[http://[6000::24]:8080/jenkins"|http://[6000::24]:8080/jenkins]<br>But the default value of "Jenkins URL" in "Jenkins Location" Section of "Configuration System" webpage is: “http://[6000:8080/jenkins/”<br><br>We fixed the bug in Jenkins.getRootUrlFromRequest() 2019-06-17 17:15:22 +08:00
Kohsuke Kawaguchi bc40ab3ae5 [maven-release-plugin] prepare for next development iteration 2019-06-16 22:12:00 -07:00