Commit Graph
19176 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 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
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
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 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
Tim Jacomb 1684de425e Add fine logging for removing cookies 2019-07-03 14:58:18 -04: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 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
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 2019-06-23 20:15:57 -07: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 708bbdc9f1 Merge pull request #4081 from jglick/NodeProvisioner-logging
Improved logging for NodeProvisioner
2019-06-22 08:45:26 +02: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
Kohsuke Kawaguchi 098e6d3832 [maven-release-plugin] prepare release jenkins-2.181 2019-06-16 22:11:37 -07:00
Basil CrowandJeff Thompson 2dbb5e54f9 Switch to SpotBugs (#4062)
* Switch to SpotBugs

* Suppress erroneous NP_PARAMETER_MUST_BE_NONNULL_BUT_MARKED_AS_NULLABLE warnings

* Try replacing Nullable with CheckForNull, per Oleg's suggestion.

* Tidy up SpotBugs annotation reference in POM

* Update core/src/main/java/jenkins/security/apitoken/LegacyApiTokenAdministrativeMonitor.java

Co-Authored-By: Jeff Thompson <37345299+jeffret-b@users.noreply.github.com>

* Update core/src/main/java/jenkins/security/apitoken/LegacyApiTokenAdministrativeMonitor.java

Co-Authored-By: Jeff Thompson <37345299+jeffret-b@users.noreply.github.com>

* Update core/src/main/java/jenkins/security/apitoken/LegacyApiTokenAdministrativeMonitor.java

Co-Authored-By: Jeff Thompson <37345299+jeffret-b@users.noreply.github.com>

* Revert "Try replacing Nullable with CheckForNull, per Oleg's suggestion."

This reverts commit 39ae38e214.
2019-06-16 10:29:21 +02:00
Jesse Glick 0f73231f77 [JENKINS-33843] Permit disabling optional dependencies (#4001)
* Implied dependencies on detached plugins were not being marked optional despite being listed in optionalDependencies, confusing the calculation of optionalDependents in resolveDependentPlugins.

* Javadoc improvements based on code exploration.

* [JENKINS-33843] Do not consider optional dependencies for purposes of disabling plugins.

* PluginManagerInstalledGUITest updated to reflect new behavior.
2019-06-15 11:21:20 +02:00
Oleg Nenashev dcc395b814 Merge pull request #4066 from jglick/quiet-JENKINS-57993
[JENKINS-57993] Avoid printing stack traces for some common agent conditions
2019-06-15 11:10:56 +02:00
Oleg Nenashev e3afbdbf3c Merge pull request #4023 from jsoref/JENKINS-57466
[JENKINS-57466] If two users trigger updateDirectly -> isDue, make one wait
2019-06-14 10:21:43 +02:00
Josh Soref 671ff304f4 mark up variables (#4064)
* mark up variables

* mark up variables
2019-06-14 10:20:48 +02:00
Josh Soref c9ad878e31 Cleanup groovy (#4033)
* IntelliJ/Groovy: deprecation

This is pretty useless as getSecurityKey is also deprecated

* IntelliJ/Groovy: deprecation

Resolve ApiTokenFilter is deprecated

* IntelliJ/Groovy: Semicolons are Optional

* This import is required by a bean/hudson.util.spring.BeanBuilder
2019-06-14 10:19:22 +02:00
Oleg Nenashev 09f5fff82c Merge pull request #4067 from jsoref/JENKINS-57992
[JENKINS-57992] clarify that the system user is a jenkins concept
2019-06-14 10:18:28 +02:00
mawinter69 ffa9abf6e3 [JENKINS-57515] update JNA library from 4.5.2 to 5.3.1 (#4060)
* [JENKINS-57515] update jna library to 5.3.1

This solves problems with loading native libraries of jna on AIX
platform when using openJDK or other JDKs that assume .so is the
extension for shared libraries

* Pointer.SIZE -> Native.POINTER_SIZE

* remove unnecessary import

* adjust to changed api
2019-06-14 10:18:02 +02:00
Devin Nusbaum b18b2e686d [JENKINS-57725] - Wrap Proc.executor in ClassLoaderSanityThreadFactory (#4035) 2019-06-13 22:27:38 +02:00
Jesse Glick b4aa9d7dbe Errors from node monitors should be sent to agent logs rather than the system log. 2019-06-13 10:43:03 -04:00
Josh Soref 4f8404e929 [JENKINS-57992] clarify that the system user is a jenkins concept 2019-06-13 02:33:46 -04:00