Commit Graph
32590 Commits
Author SHA1 Message Date
David Hoover ad908776db Fix a few javadoc typos 2017-05-23 15:35:24 -07:00
Oliver Gondža 741be05517 [FIXED JENKINS-44361] Follow HTTP redirects while initiating CLI connection 2017-05-23 15:16:04 +02:00
Andrew Bayer 3b712af2de [JENKINS-34464] Switch ReverseBuildTrigger.threshold to DataBoundSetter 2017-05-22 12:24:10 -04:00
Xi Qi df21a13cd6 [FIXED JENKINS-44417] - Fix Warning image size to support retina display (#2306) 2017-05-22 14:10:50 +02:00
Oleg Nenashev b5fe89cc98 [JENKINS-44103] - Cleanup usages of the "JNLP" term in TcpSlaveAgentListener 2017-05-22 10:38:58 +02:00
Kohsuke Kawaguchi eeb986977d [maven-release-plugin] prepare for next development iteration 2017-05-21 16:25:54 -07:00
Kohsuke Kawaguchi e51248ba11 [maven-release-plugin] prepare release jenkins-2.62 jenkins-2.62 2017-05-21 16:25:54 -07:00
Oleg Nenashev bfd1f088e3 Merge pull request #2893 from oleg-nenashev/winp/1.25
[JENKINS-44368] - Update WinP to 1.25 in order to improve diagnostics of issues like JENKINS-30782
2017-05-21 09:23:16 +02:00
Oleg Nenashev a27b73993d Merge pull request #2894 from oleg-nenashev/bug/JENKINS-44330-LogRecorderClassloading
[FIXED JENKINS-44330] - Prevent classloading of Target comparator in LogRecorder#orderedTargets()
2017-05-21 00:22:53 +02:00
Baptiste Mathus cde4041d00 Fix issue with accmod on self referencing 2017-05-20 15:33:40 +02:00
Baptiste Mathus c5bcefaa09 Also restrict its usage 2017-05-20 15:33:40 +02:00
Oleg Nenashev e4c4b81079 [FIXED JENKINS-44330] - Prevent classloading of Target comparator in LogRecorder#orderedTargets()
It is just a hotfix, there may be other LogRecorders affected. Ideally we need a response from Jetty maintainers to https://github.com/eclipse/jetty.project/issues/1563. No tests since I see no way to trigger such classloading + no actual need in it.
2017-05-20 13:00:42 +02:00
Jesse Glick d13b1361e1 Adding some interface default method implementations (#2879)
* Adding some interface default method implementations rather than catching AbstractMethodError or providing partial implementation classes.

* Show Javadoc warnings and errors, but not ‘Generating …/core/target/site/apidocs/jenkins/model/lazy/class-use/AbstractLazyLoadRunMap.html...’ and the like.

* Javadoc fixes.

* Review comments from @oleg-nenashev.

* Test fixes.

* Remove the unused import
2017-05-20 12:32:52 +02:00
Oleg Nenashev 1f4183a9a3 Merge pull request #2888 from mc1arke/jenkins-44120-trilead-npe-fix
[FIXED JENKINS-44120] Bump Trilead version to fix NPE in KEX negotiation
2017-05-20 01:10:12 +02:00
Jesse Glick 902b901385 Deleting obsolete comment. 2017-05-19 12:04:04 -04:00
Jesse Glick 9ad65c91fd s/-tools/-dist/g 2017-05-19 10:28:54 -04:00
Jesse Glick 1d8af3316c Merge branch 'master' into mirror-INFRA-1176 2017-05-19 08:40:02 -04:00
Oleg Nenashev 6f9a833f92 [JENKINS-44368] - Update WinP to 1.25 in order to improve diagnostics of issues like JENKINS-30782 2017-05-19 12:12:49 +02:00
Baptiste Mathus 2c64d92f45 Deprecate TimeUnit2
java.util.concurrent.TimeUnit is preferrable now.

Quoting Stephen:
"Java 5 did not have all the units required. So TU2 was
one that had better conversion. Can be deprecated once
we upgrade to Java 6 ;-)"
2017-05-19 12:07:03 +02:00
Jesse Glick 8199ec5ae4 Queue.Item.authenticate honors QueueItemAuthenticatorProvider; Tasks.getAuthenticationOf should as well (#2880)
* Queue.Item.authenticate honors QueueItemAuthenticatorProvider; Tasks.getAuthenticationOf should as well.

* @oleg-nenashev suggested adding some Javadoc to QueueItemAuthenticatorConfiguration.getAuthenticators.
2017-05-19 08:17:17 +02:00
Jesse Glick 915543dca5 [JENKINS-22949] BuildTrigger & ReverseBuildTrigger should respect QueueItemAuthenticatorConfiguration (#2881)
* [JENKINS-22949] Simplifying behavior of BuildTrigger & ReverseBuildTrigger to honor QueueItemAuthenticator’s as defined, rather than falling back to anonymous.

* There is no need to impersonate what is already the current thread’s authentication.
2017-05-19 08:14:59 +02:00
Jesse Glick 33afbcc87f Make all CLI commands compatible with Pipeline where possible (#2874)
* [FIX JENKINS-30785] Generalize some CLI stuff to AbstractItem

* Offering default methods on ParameterizedJob.

* Javadoc typo.

* Cleaner use of default methods in ParameterizedJob.

* Need to pick up https://github.com/infradna/bridge-method-injector/pull/15 to be able to build.

* Sketch of pulling disabled functionality into ParameterizedJob.

* EnableJobCommandTest.groovy → EnableJobCommandTest.java, and replacing deprecated Remoting-based CLI calls with CLICommandInvoker.

* All CLI commands could be broken by a missing CLI.*.shortDescription key on just one!

* Forgot to move CLI method short descriptions to new package.

* Needed a @CLIResolver for ParameterizedJob. Adding an OptionHandler while we are here.

* Trying to fix up access-modifier versions; started failing in CI today for unknown reasons.

* Introduced <p:makeDisabled/> by analogy with <p:config-disableBuild/>.

* Using new type bounds.

* access-modifier 1.11 released.

* MatrixProject and MavenModuleSet both expect to have access to makeDisabled.jelly.

* Trying to generalize some more.

* Minor simplification.

* [JENKINS-34716] Generalizing doPolling and schedulePolling.

* isBuildable

* Obsolete comment.

* Updated comments.

* bridge-method-injector 1.17

* Unfortunately AbstractProject.schedulePolling cannot delegate to SCMTriggerItem.

* Making delete-builds and list-changes commands work with Pipeline.

* [FIXED JENKINS-41527] Made console CLI command compatible with Pipeline.

* Fixed set-build-description and set-build-display-name.

* @oleg-nenashev agreed it would be clearer to explicitly mark commands as restricted, not APIs.

* Updated tests to match slight message changes.

* bridge-method-injector 1.17

* @olivergondza pointed out that RunRangeCommand is a better name than JobRangeCommand.
2017-05-19 08:12:31 +02:00
Jesse Glick 1e3f1226cd Adding -e to get stack traces on failures. 2017-05-18 17:39:30 -04:00
Jesse Glick 82db76d5c8 [INFRA-1176] Using repo.azure.jenkins.io as a mirror for CI builds. 2017-05-18 17:28:25 -04:00
Jesse Glick b9f99b9c7f Switching to yarn pinned to the Artifactory mirror. 2017-05-18 16:33:20 -04:00
Jesse Glick 3c7f955541 Getting node and npm binaries from Artifactory. 2017-05-18 15:58:43 -04:00
Michael Clarke 7dbcd02cf7 [FIXED JENKINS-44120] Bump Trilead version to fix NPE in KEX negotiation 2017-05-17 21:21:39 +01:00
Oliver Gondža dbd645a514 Address Oleg's commants 2017-05-16 13:23:54 +02:00
Oliver Gondža 8ad3eb4973 [FIXED JENKINS-44204] Provide essential views for clouds
Cloud pages can now be customized by actions and sidepanel, that can be
further customized by widgets.
2017-05-16 12:06:39 +02:00
Kohsuke Kawaguchi a8994d4fa5 [maven-release-plugin] prepare for next development iteration 2017-05-14 18:26:29 -07:00
Kohsuke Kawaguchi d04e6777c7 [maven-release-plugin] prepare release jenkins-2.61 jenkins-2.61 2017-05-14 18:26:28 -07:00
Jesse Glick f1a26582c1 [JENKINS-28113] Allow freestyle builds to trigger downstream Pipeline builds (#2873)
* Offering default methods on ParameterizedJob.

* Javadoc typo.

* Cleaner use of default methods in ParameterizedJob.

* Need to pick up https://github.com/infradna/bridge-method-injector/pull/15 to be able to build.

* Sketch of pulling disabled functionality into ParameterizedJob.

* EnableJobCommandTest.groovy → EnableJobCommandTest.java, and replacing deprecated Remoting-based CLI calls with CLICommandInvoker.

* All CLI commands could be broken by a missing CLI.*.shortDescription key on just one!

* Forgot to move CLI method short descriptions to new package.

* Needed a @CLIResolver for ParameterizedJob. Adding an OptionHandler while we are here.

* Trying to fix up access-modifier versions; started failing in CI today for unknown reasons.

* Introduced <p:makeDisabled/> by analogy with <p:config-disableBuild/>.

* Using new type bounds.

* access-modifier 1.11 released.

* MatrixProject and MavenModuleSet both expect to have access to makeDisabled.jelly.

* Trying to generalize some more.

* Minor simplification.

* [JENKINS-34716] Generalizing doPolling and schedulePolling.

* isBuildable

* Obsolete comment.

* Updated comments.

* bridge-method-injector 1.17

* Unfortunately AbstractProject.schedulePolling cannot delegate to SCMTriggerItem.

* [FIXED JENKINS-28113] Generalize BuildTrigger to be able to trigger non-AbstractProject downstream ParameterizedJob’s without DependencyGraph.

* [JENKINS-22949] Dropping QueueItemAuthenticator trickiness, as in #2881.
2017-05-14 05:22:40 +03:00
Jesse Glick 3af0cc68cb [JENKINS-27299] Define disabled in ParameterizedJob rather than AbstractProject (#2866)
* Offering default methods on ParameterizedJob.

* Javadoc typo.

* Cleaner use of default methods in ParameterizedJob.

* Need to pick up https://github.com/infradna/bridge-method-injector/pull/15 to be able to build.

* Sketch of pulling disabled functionality into ParameterizedJob.

* EnableJobCommandTest.groovy → EnableJobCommandTest.java, and replacing deprecated Remoting-based CLI calls with CLICommandInvoker.

* All CLI commands could be broken by a missing CLI.*.shortDescription key on just one!

* Forgot to move CLI method short descriptions to new package.

* Needed a @CLIResolver for ParameterizedJob. Adding an OptionHandler while we are here.

* Trying to fix up access-modifier versions; started failing in CI today for unknown reasons.

* Introduced <p:makeDisabled/> by analogy with <p:config-disableBuild/>.

* Using new type bounds.

* access-modifier 1.11 released.

* MatrixProject and MavenModuleSet both expect to have access to makeDisabled.jelly.

* Trying to generalize some more.

* Minor simplification.

* [JENKINS-34716] Generalizing doPolling and schedulePolling.

* isBuildable

* Obsolete comment.

* Updated comments.

* bridge-method-injector 1.17

* Unfortunately AbstractProject.schedulePolling cannot delegate to SCMTriggerItem.

* bridge-method-injector 1.17
2017-05-14 05:15:10 +03:00
Jesse Glick 37dfa992eb Offering default methods on ParameterizedJob (#2864)
* Offering default methods on ParameterizedJob.

* Javadoc typo.

* Cleaner use of default methods in ParameterizedJob.

* Need to pick up https://github.com/infradna/bridge-method-injector/pull/15 to be able to build.

* Using new type bounds.

* bridge-method-injector 1.17
2017-05-13 13:21:05 +03:00
Jesse Glick 8edf4a349d Update detached plugins to reflect security releases (#2817)
* [SECURITY-372] Update bundled mailer to 1.20.

* Updated to pick up other detached plugins mentioned in https://jenkins.io/security/advisory/2016-04-11/ or https://jenkins.io/security/advisory/2017-03-20/ while we are here.

* I18nTest.test_baseName_plugin caught that the detached version of credentials was too old to serve as a dependency.
Probably there should be some test case verifying that all detached plugins could be loaded at once,
though it would need to do a topological sort in dependency order.

* Must also include display-url-api as a detached plugin as it is a dependency, even though it was never actually detached from core.

* @oleg-nenashev insists on bundling display-url-api 2.0.
2017-05-13 13:01:10 +03:00
Oleg Nenashev f1af3e4ce4 Merge pull request #2884 from jtnord/underscore
Javadoc fix.
2017-05-12 09:39:55 +03:00
James Nord 712072621f Javadoc fix.
The use of `_` as an identifier is discouraged in the JLS, therefor do
not suggest its use in our javadoc.

ref:
http://docs.oracle.com/javase/specs/jls/se8/html/jls-15.html#jls-15.27.1

> It is a compile-time error if a lambda parameter has the name _ (that
is, a single underscore character).

> The use of the variable name _ in any context is discouraged. Future
versions of the Java programming language may reserve this name as a
keyword and/or give it special semantics.
2017-05-11 11:41:29 +01:00
Allan Burdajewicz 7db9fe9566 [JENKINS-42707] AccessDeniedException exception in ReverseBuildTrigger (#2846)
* [JENKINS-42707] AccessDeniedException vulnerability in ReverseBuildTrigger.

* [JENKINS-42707] Added tests to expose the issue

* [JENKINS-42707] Log message according to permission (DISCOVER/READ)

* [JENKINS-42707] Use MockAuthorizationStrategy

* [JENKINS-42707] Remove internationalization for logger

(cherry picked from commit 17eedcfde8)
2017-05-11 09:52:33 +02:00
Jesse Glick 543d184004 [FIXED JENKINS-44010] It is possible for Jenkins.crumbIssuer to be unset while the setup wizard is running.
(cherry picked from commit ae1fdc95a1)
2017-05-11 09:44:09 +02:00
Olivier Lamy d600a3193b [JENKINS-43713] Integrate Winstone 4 (Jetty 9.4.5) (#2850)
* use snapshot of winstone with new jetty 9.4.x version

Signed-off-by: olivier lamy <olamy@apache.org>

* add jetty snapshot repository until last jetty release deployed

Signed-off-by: olivier lamy <olamy@apache.org>

* surefire 2.20

Signed-off-by: olivier lamy <olamy@apache.org>

* winstone will be 4.0

Signed-off-by: olivier lamy <olamy@apache.org>

* remove jetty snapshot repo

Signed-off-by: olivier lamy <olamy@apache.org>

* touch to force pr rebuild as snapshot has been deployed

Signed-off-by: olivier lamy <olamy@apache.org>

* use winstone release

Signed-off-by: olivier lamy <olamy@apache.org>

* use maven-jenkins-dev-plugin 9.4.5.v20170502-jenkins-1

Signed-off-by: olivier lamy <olamy@apache.org>
2017-05-11 09:28:15 +03:00
Oleg Nenashev 75ac24a359 Merge pull request #2814 from kamilszymanski/groovy_update
Upgrade to Groovy 2.4.11
2017-05-11 09:24:18 +03:00
Kohsuke Kawaguchi 26d154a3c2 [maven-release-plugin] prepare for next development iteration 2017-05-10 15:08:22 -07:00
Kohsuke Kawaguchi 9c86a3cade [maven-release-plugin] prepare release jenkins-2.60 jenkins-2.60 2017-05-10 15:08:21 -07:00
Oleg Nenashev 604fc96bac Merge pull request #2878 from tequillaz/rss_feed_name
[JENKINS-44117] - use getFullDisplayName for RSS feed name
2017-05-10 22:02:23 +03:00
Andrew Bayer 2f5ca1a7a1 Merge pull request #2730 from abayer/jenkins-24141
[JENKINS-24141] Pull ChangeLogSet-related logic out of AbstractBuild
2017-05-10 10:21:24 -04:00
Oleg Nenashev 1c52d910ed Merge pull request #2870 from oleg-nenashev/windows-slave-installer/1.9
Update WinSW to 2.1.0 and Windows Agent Installer to 1.9
2017-05-10 09:45:39 +03:00
Andrew Bayer 914963c223 Get rid of superfluous Queue.Task/Executable 2017-05-08 12:39:09 -04:00
tequillaz 26dc905ff2 use getFullDisplayName for RSS feed name 2017-05-08 16:44:08 +03:00
Andrew Bayer b6e1ae5537 Adding a @since TODO for Job.doRssChangelog 2017-05-08 09:24:55 -04:00
Kohsuke Kawaguchi 909cdb78e8 [maven-release-plugin] prepare for next development iteration 2017-05-07 21:23:31 -07:00