Commit Graph

25330 Commits

Author SHA1 Message Date
Kohsuke Kawaguchi 64e8ea3d75 [maven-release-plugin] prepare for next development iteration 2017-07-02 18:16:31 -07:00
Kohsuke Kawaguchi 2145dbf9f9 [maven-release-plugin] prepare release jenkins-2.68 2017-07-02 18:16:31 -07:00
Oleg Nenashev cc1615b9ef Merge pull request #2931 from jglick/ReloadConfigurationCommand
[JENKINS-45256] The reload-configuration CLI command ought to wait until the reload is finished
2017-07-01 12:50:41 +02:00
Oleg Nenashev 26fc2a9650 Merge pull request #2927 from daniel-beck/JENKINS-9283-docs
Document timezone specification and provide full list
2017-07-01 08:13:12 +02:00
Oleg Nenashev bcf55ecd7f [JENKINS-43496] - Add handling of the null Node#createComputer() result. (#2922)
* [JENKINS-43496] - Add handling of the null Node#createComputer() result.

it is a follow-up to https://github.com/jenkinsci/jenkins/pull/2836#discussion_r110604865

De-facto many Cloud plugins return `null` in `Node#createLauncher()`, but it has never been documented.
In order to prevent possible API misusages in the future, I have added annotations and fixed handling of the extension point in `AbstractCIBase#updateComputer()` which may fail in the case of `null` or `RuntimeException` in the Node implementation.

* [JENKINS-43496] - Use ProtectedExternally to protect Node#createComputer()

* [JENKINS-43496] - Remove the erroneous Nonnull annotation after the feedback from @jglick

* [JENKINS-43496] - Fix typos noticed by @daniel-beck
2017-07-01 08:11:16 +02:00
Oleg Nenashev e7cdd6517c [JENKINS-39370] - Update Remoting in Jenkins core to 3.10 (#2886)
* Update Remoting in Jenkins core to 3.8

* JENKINS-39370 - Introduce support of Work Directories in remoting (opt-in).
* PR 129 - Allow configuring java.util.logging settings via a property file (-loggingConfig or JUL system property). See the Logging page for more details.
* JENKINS-37567 - Change of the code signing certificate

More info: https://github.com/jenkinsci/remoting/blob/master/CHANGELOG.md#38

* [JENKINS-39370] - Add direct tests for JNLP Launcher start with -workDir

* Pick Remoting 3.9

* Improve error message of LauncherTest#remoteKill()

* Update Remoting to 3.10
2017-07-01 07:54:48 +02:00
Oliver Gondža b7ec53423e Merge pull request #2897 from olivergondza/JENKINS-44361
[FIXED JENKINS-44361] Follow HTTP redirects while initiating CLI connection
2017-06-29 20:15:57 +02:00
Daniel Beck c906a181ad s/timezone/time zone 2017-06-29 14:37:19 +02:00
Oleg Nenashev 9b4b9ff80c Merge pull request #2929 from jglick/user.name.escaped
[INFRA-1032] ${user.name} might contain metacharacters
2017-06-28 14:00:58 +02:00
Jesse Glick 4a4bdc981f The `reload-configuration` CLI command ought to wait until the reload is finished. 2017-06-26 18:10:28 -04:00
Jesse Glick 7b69fe5be6 [INFRA-1032] ${user.name} might contain metacharacters. 2017-06-26 15:19:27 -04:00
Daniel Beck 9635b7241f Add list of supported time zone IDs, rephrase some of the doc 2017-06-26 18:29:39 +02:00
Oleg Nenashev f6176bc19d [JENKINS-9283] - Don't accept invalid timezones, add form validation 2017-06-26 18:03:39 +02:00
Oleg Nenashev b171bc6053 [JENKINS-9283] - Document timezones support in help pages 2017-06-26 18:03:39 +02:00
Oleg Nenashev 78a42d5a4a [JENKINS-38527] - Prevent NullPointerException in Slave#createLauncher() and add cause diagnostics (#2923)
* [JENKINS-38527] - Prevent NullPointerException in Slave#createLauncher() and add cause diagnostics

The original issue comes from the isUnix() unboxing, but we can also get into an issue later if we pass a null Channel instance to the logic.
This change adds some diagnostics which discovers potential root causes of such potential NPEs due to the race conditions with Computer reconnection

* [JENKINS-38527] - Also handle cases when Channel#isClosingOrClosed() as @stephenc suggested
2017-06-26 11:02:52 +02:00
Kohsuke Kawaguchi 006fd89469 [maven-release-plugin] prepare for next development iteration 2017-06-25 18:05:46 -07:00
Kohsuke Kawaguchi 3fbd941c2a [maven-release-plugin] prepare release jenkins-2.67 2017-06-25 18:05:46 -07:00
Daniel Beck fe4d739bd1 Merge pull request #2924 from jglick/annotation-indexer-1.12
annotation-indexer 1.12
2017-06-24 22:00:25 +02:00
Daniel Beck 4515a07518 Merge pull request #2895 from abayer/jenkins-34464
[JENKINS-34464] Switch ReverseBuildTrigger.threshold to DataBoundSetter
2017-06-24 21:59:58 +02:00
Daniel Beck 2b8b189979 Merge pull request #2921 from jenkinsci/pr-template-update
Simplify the pull-request template
2017-06-24 21:59:09 +02:00
Oleg Nenashev 095310afdd Annotate and document methods of hudson.Launcher (#2920)
* Annotate and document methods of hudson.Launcher

* Fix newly introduced FindBugs issues in hudson.Launcher

* Remove brackets from FilePath#createLauncher() to avoid the merge conflict
2017-06-24 19:17:11 +02:00
Oleg Nenashev a0b02b6bcd Merge pull request #2896 from oleg-nenashev/bug/JENKINS-44103-UI
[JENKINS-44103] - Cleanup usages of the "JNLP" term in TcpSlaveAgentListener
2017-06-22 13:18:37 +02:00
Oleg Nenashev 3dc9c483d4 Address comment from @daniel-beck 2017-06-22 09:16:38 +02:00
Jesse Glick 6b44ccbfdb annotation-indexer 1.12 2017-06-21 15:20:27 -04:00
Oliver Gondža 662df37426 Resolving the redirect is OK to fail 2017-06-19 13:22:25 +02:00
Oliver Gondža d9cb39f95f Use authorization to resolve redirect 2017-06-19 12:52:18 +02:00
Oliver Gondža 749ca07380 Do not timeout the test when cli invocation fails 2017-06-19 12:51:22 +02:00
Oliver Gondža 552d2835cc Address review comment 2017-06-19 09:34:44 +02:00
Kohsuke Kawaguchi c4f05eebe1 [maven-release-plugin] prepare for next development iteration 2017-06-18 21:18:54 -07:00
Kohsuke Kawaguchi 6142ccf971 [maven-release-plugin] prepare release jenkins-2.66 2017-06-18 21:18:54 -07:00
Oleg Nenashev cb3f713122 [FIXED JENKINS-44764, JENKINS-44894] - Update Extras Executable War from 1.34 to 1.35.1 (#2917)
* [FIXED JENKINS-44764, JENKINS-44894] - Update Extras Executable War from 1.34 to 1.35

* Pick version with a system property name fix, noticed by @daniel-beck
2017-06-18 01:50:55 +02:00
Andrew Bayer 303a9f7df7 [FIXED JENKINS-44898] Add findResource to PluginFirstClassLoader (#2916)
* [FIXED JENKINS-44898] Add findResource to PluginFirstClassLoader

This fixes GroovyClassLoader.loadClass for a .groovy file in a plugin
with a PluginFirstClassLoader, specifically by fixing fast-loading via
the UberClassLoader.

* Move common code to AntWithFindResourceClassLoader.

* Adding testing of new PluginFirstClassLoader behavior.
2017-06-17 23:00:10 +02:00
Oleg Nenashev bb66ce4c83 Simplify the pull-request template
* Remove the description header. It is confusing because commit message body goes before it
* Explicitly require human-readable changelogs
* Explicitly require links to the external changelogs/diffs
2017-06-17 15:59:00 +02:00
Oliver Gondža d165579a22 Merge branch 'master' into JENKINS-44361 2017-06-17 14:31:44 +02:00
Oleg Nenashev a5dc255d21 Merge pull request #2914 from jglick/FilePath.list
[JENKINS-44942] - FilePath.list() & .listDirectories() null safety
2017-06-16 12:48:16 +02:00
Oliver Gondža 70f80e97c7 Merge pull request #2919 from olivergondza/visiblity-filter
[FIXED JENKINS-40545] Diagnose NPE in DescriptorVisibilityFilter.apply
2017-06-15 20:03:24 +02:00
Oliver Gondža 1167430a71 [FIXED JENKINS-40545] Diagnose NPE in DescriptorVisibilityFilter.apply
Before:
Jun 15, 2017 8:29:06 AM hudson.ExpressionFactory2$JexlExpression evaluate
WARNING: Caught exception evaluating: h.filterDescriptors(it, no_descriptors_here).size() in /jenkins/jenkins40545/. Reason: java.lang.NullPointerException
java.lang.NullPointerException
	at hudson.model.DescriptorVisibilityFilter.apply(DescriptorVisibilityFilter.java:72)
	at hudson.Functions.filterDescriptors(Functions.java:1863)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.apache.commons.jexl.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:258)
	...

After:
Jun 15, 2017 12:10:43 PM hudson.ExpressionFactory2$JexlExpression evaluate
WARNING: Caught exception evaluating: h.filterDescriptors(it, no_descriptors_here).size() in /jenkins/jenkins40545/. Reason: java.lang.NullPointerException: Descriptor list is null for context 'class hudson.model.DescriptorVisibilityFilterTest$Jenkins40545' in thread 'Handling GET /jenkins/jenkins40545/ from 127.0.0.1 : Jetty Thread Pool DescriptorVisibilityFilterTest/Jenkins40545/index.jelly'
java.lang.NullPointerException: Descriptor list is null for context 'class hudson.model.DescriptorVisibilityFilterTest$Jenkins40545' in thread 'Handling GET /jenkins/jenkins40545/ from 127.0.0.1 : Jetty Thread Pool DescriptorVisibilityFilterTest/Jenkins40545/index.jelly'
	at hudson.model.DescriptorVisibilityFilter.apply(DescriptorVisibilityFilter.java:73)
	at hudson.Functions.filterDescriptors(Functions.java:1863)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.apache.commons.jexl.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:258)
	...
2017-06-15 12:20:37 +02:00
Jesse Glick 064bdbbe09 FilePath.listDirectories() was documented to never be null, but this was not in fact so.
FilePath.list() did not specify, but at least DownloadFromUrlInstaller assumed it was non-null.
2017-06-12 13:27:02 -04:00
Kohsuke Kawaguchi f7d6b6f89f [maven-release-plugin] prepare for next development iteration 2017-06-12 08:28:02 -07:00
Kohsuke Kawaguchi 8ea4a76cd2 [maven-release-plugin] prepare release jenkins-2.65 2017-06-12 08:28:02 -07:00
Daniel Beck c3b1bff647 Merge pull request #2912 from daniel-beck/JENKINS-44769
[FIX JENKINS-44769] Don't access response when called from CLI
2017-06-10 00:05:14 +02:00
Daniel Beck 83671af504 [FIX JENKINS-44769] Don't access response when called from CLI 2017-06-09 16:10:52 +02:00
Kohsuke Kawaguchi 0b12bd3f7c [maven-release-plugin] prepare for next development iteration 2017-06-04 14:37:06 -07:00
Kohsuke Kawaguchi 1b55410b35 [maven-release-plugin] prepare release jenkins-2.64 2017-06-04 14:37:05 -07:00
Daniel Beck 2228b3936e Merge pull request #2900 from ksenia-nenasheva/JENKINS-4478
[JENKINS-4478] - Move TCP port out from under security
2017-06-03 10:04:02 +02:00
Daniel Beck a76a267f2f Merge pull request #2907 from jglick/Main-Javadoc
Noting functionality which really ought to have been factored out into external-monitor-job but could not be
2017-06-03 09:33:33 +02:00
Daniel Beck 0ec25081ee Merge pull request #2908 from jglick/cleanUp
[JENKINS-44589] Adding some missing calls to cleanUp
2017-06-03 09:32:02 +02:00
Daniel Beck 59ae1f69fc Merge pull request #2909 from andresrc/JENKINS-44608
[JENKINS-44608] Don't check for monitor activation if it is disabled
2017-06-03 09:30:18 +02:00
Daniel Beck aff0b92577 Merge pull request #2905 from recena/JENKINS-44563
[JENKINS-44563] Use one-column layout for REST API page
2017-06-03 09:29:19 +02:00
Oleg Nenashev 7fe0621ff2 Merge pull request #2904 from bgamari/master
jenkins-core: Bump jnr-posix version
2017-06-02 23:01:43 +02:00