Commit Graph
4775 Commits
Author SHA1 Message Date
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
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
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
Devin Nusbaum 9012e0ab05 [JENKINS-57805] Add regression test 2019-06-03 11:26:16 -04:00
Kohsuke Kawaguchi 25076933c7 [maven-release-plugin] prepare for next development iteration 2019-05-26 13:41:00 -07:00
Kohsuke Kawaguchi 6e81b50f53 [maven-release-plugin] prepare release jenkins-2.179 2019-05-26 13:39:53 -07:00
Oleg Nenashev 0a3f618bfb Merge pull request #4039 from jglick/nonstandardFilenames-JENKINS-55582
[JENKINS-55582] Handle nonstandard $JENKINS_HOME/plugins/$shortName.hpi and warn about $shortName-$version.hpi
2019-05-25 18:19:40 +02:00
Josh Soref 01a3c5741a [JENKINS-55787] Switch labels from entry to checkbox (#3921)
* [JENKINS-55787] Switch labels from entry to checkbox

* trim

* help-boolean-default
2019-05-24 14:38:34 +02:00
Jesse Glick 3bcdefcae4 [JENKINS-55582] Refinement to at least handle nonstandard $JENKINS_HOME/plugins/$shortName.hpi and warn about $shortName-$version.hpi. 2019-05-23 13:26:15 -04:00
Kohsuke Kawaguchi 86a27454e3 [maven-release-plugin] prepare for next development iteration 2019-05-20 01:22:44 -07:00
Kohsuke Kawaguchi 446ed86ccd [maven-release-plugin] prepare release jenkins-2.178 2019-05-20 01:22:36 -07:00
Jesse Glick 855ea2eea2 [JENKINS-57528] - Load detached plugins which are implicit deps of other plugins at startup even w/o UC (#4000)
* Do not warn repeatedly of the same missing update site dependency.
This happens when locally testing split plugins (despite their presence in WEB-INF/detached-plugins/*.hpi).

(cherry picked from commit 918a0fd221)

* Detached plugins must be kept up to date with security advisories.

(cherry picked from commit e08d28a698)

* Load detached plugins which are implicit dependencies of other plugins at startup, even if the update center was not used.

(cherry picked from commit ad7a36001d)

* Adjusted expected version after e08d28a698.

(cherry picked from commit 84f939cebd)

* e08d28a698 exposed tests which had been incorrectly storing plugins as *.hpi rather than *.jpi.

(cherry picked from commit a0abad7ec4)

* Test failure after ad7a36001d.

(cherry picked from commit 0084e8dbdd)

* Another test failure after ad7a36001d30a6174b25e616fc3c215dd24919d1; fewer installDetachedPlugin calls are now required.

(cherry picked from commit b65bb54e99)
2019-05-17 16:22:22 +02:00
Josh Soref 6c1d61aaff [JENKINS-21024] assertEquals between objects of inconvertible types inspection 2019-05-15 11:28:04 -04:00
Kohsuke Kawaguchi 8bea0c9526 [maven-release-plugin] prepare for next development iteration 2019-05-12 17:24:55 -07:00
Kohsuke Kawaguchi 32f2a8f49d [maven-release-plugin] prepare release jenkins-2.177 2019-05-12 17:23:47 -07:00
Liam Newman a78f9461ef [JENKINS-57111] Do not put agent offline for exceptions in onOnline
Agent implementers use onOnline to perform actions after an agent
put online.  The API specifies that execeptions thrown by this
method will not put an agent offline.  However, the default
implementation does exactly that.

This change clarifies the API to say all exceptions will be logged
and hardens setChannel against exceptions during onOnline.

NOTE: Errors will still cause an agent to go offline as they are
generally fatal conditions.

Also added tests to verify the behavior.
2019-05-10 19:28:18 -07:00
Ilya Zasimov 4787bd4463 Cleanup StopBuildsCommandTest 2019-05-05 15:14:55 +03:00
austry 63b953d409 [JENKINS-11888] - Add stop-job CLI command (#3686)
* JENKINS-11888 Add stop-job CLI command

* JENKINS-11888 Add license headers

* JENKINS-11888 Review fix

* JENKINS-11888 Fix review

* JENKINS-11888 Remove moved files from cli package

* JENKINS-11888 Fix logging

* JENKINS-11888 Collect jobs list before stopping any builds

* JENKINS-11888 Refactor isBuilding check

* JENKINS-11888 Add Restricted annotation for StopBuildsCommand

* JENKINS-11888 Make cli output more responsive

* JENKINS-11888 Remove single quote for job name

* JENKINS-11888 Add semicolon

* JENKINS-11888 Handle exception for executor.doStop

* JENKINS-11888 Rework test to use JenkinsRule

* JENKINS-11888 Remove semicolons from CLI output

* JENKINS-11888 Fix tests for windows platform

* JENKINS-11888 Write message about exception in one line

* JENKINS-11888 Fix output on not founded job

* JENKINS-11888 Improve tests

* JENKINS-11888 Use fullDisplayName for job name

* JENKINS-11888 Use single quotes for build and job names

* JENKINS-11888 Cleanup exceptions throwing

* JENKINS-11888 Add test checking second job will be stopped if first stop failed
2019-05-04 21:21:20 +02:00
Jesse Glick 45573ce6a3 [JENKINS-57273] Jenkins/Nodes.addNode could replace an existing node, but always fired onCreated. (#4004) 2019-05-03 13:19:24 +02:00
Kohsuke Kawaguchi 44c4d39892 [maven-release-plugin] prepare for next development iteration 2019-04-28 16:17:47 -07:00
Kohsuke Kawaguchi ee0bba9782 [maven-release-plugin] prepare release jenkins-2.175 2019-04-28 16:17:36 -07:00
Romén Rodríguez-Gil a21402b5f8 [JENKINS-56477] Fix to allow selecting compatible-only updates for plugins (#3985)
* [JENKINS-56477] New "isCompatible" method avoiding all plugins w/ warns

Previous version was only checking "isCompatibleWithInstalledVersion", but there were several other cases that had to be checked

* [JENKINS-56477] Added issue annotation to isPluginUpdateCompatible test

* [JENKINS-56477] Factored out getUpdateSite, init method used by 2 tests

Also removed the "sites" list from the init, since it seemed it was not being used, only using the specific site created from the external json

* [JENKINS-56477] Added a new option for plugin selection: "compatible"

Now users can select "All", "Compatible" or "None"

* [JENKINS-56477] checkPluginsWithoutWarnings also unchecks now

Useful if the user first clicks "Select All" and now wants to "Select Compatible" only.

* [JENKINS-56477] Added unit test for "UpdateSite.Plugin.isCompatible"

The UpdateSite class and its internal classes (e.g. Plugin) are a bit tricky to unit-test. Using some stubs to set the necessary context for the test to run

* [JENKINS-56477] "mock-maker-inline" incompatible w/ other tests

Had to remove the unit test checking "pluginUpdateNotCompatible. It needed "mock-maker-inline" config to mock/spy the Plugin class (which is final), but that mockito config caused conflicts with pre-existing tests.

* [JENKINS-56477] Simplifying condition to check the candidate checkbox

* [JENKINS-56477] Method overload with param should not be exported

* [JENKINS-56477] Javadoc for isCompatible(). Overloaded ver. restricted

Also switched the call in table.jelly to the overloaded version of isCompatible, since a "cache" var was available in the context (and was being already used by calls to the internal methods to show the warnings)

* Removed empty line.

Trivial change to force re-execution of pipeline.

* [JENKINS-56477] "isCompatible" set to @Restricted for now

This method is currently only being used by the Jenkins UI, so we are not being exposing it to plugins nor exporting it. If in the future that need emerges, this can be changed
2019-04-26 17:22:21 +02:00
Oleg Nenashev 43d7874310 Merge pull request #3986 from jglick/ConfidentialKey
Making ConfidentialKey instances safe to keep in static fields even across JenkinsRule starts
2019-04-26 10:15:40 +02:00
Kohsuke Kawaguchi 7936d873a1 [maven-release-plugin] prepare for next development iteration 2019-04-21 18:19:28 -07:00
Kohsuke Kawaguchi 315e46f540 [maven-release-plugin] prepare release jenkins-2.174 2019-04-21 18:19:21 -07:00
Baptiste Mathus 0f03ce2f27 Merge pull request #2831 from szpak/feature/searchableNestedViews3
[JENKINS-43322] Nested views should be also searchable by name
2019-04-20 21:22:33 +02:00
Baptiste Mathus 2767b00146 Merge pull request #3925 from ad22/JENKINS-56403
[JENKINS-56403]: Renaming an agent retains old agent configuration
2019-04-18 12:41:09 +02:00
Jesse Glick d20adb8227 Making ConfidentialKey instances safe to keep in static fields even across JenkinsRule starts. 2019-04-15 16:18:45 -04:00
Kohsuke Kawaguchi 3dc04f96ae [maven-release-plugin] prepare for next development iteration 2019-04-15 04:06:11 -07:00
Kohsuke Kawaguchi 81d96abd84 [maven-release-plugin] prepare release jenkins-2.173 2019-04-15 04:06:03 -07:00
Baptiste Mathus 850168fdb2 Merge pull request #3961 from jglick/TaskListener-flush
Adjusted TaskListener flushing in remote code
2019-04-11 15:17:30 +02:00
Kohsuke Kawaguchi 86e17f90f6 Merge remote-tracking branch 'origin/master' 2019-04-10 07:48:55 -07:00
Daniel Beck 0d2add7bce Merge pull request #3974 from jsoref/SECURITY-followup
Security followup
2019-04-10 11:37:28 +02:00
Baptiste Mathus 9f9455b131 Merge pull request #3955 from jglick/WorkspaceList.inUse-JENKINS-50504
[JENKINS-50504] WorkspaceList.inUse should be keyed by String not FilePath so leases survive agent reconnections
2019-04-10 08:45:52 +02:00
Baptiste Mathus 43960f10bc Merge branch 'master' into PR-2831-szpak
# Conflicts:
#	core/src/main/java/hudson/model/ViewGroupMixIn.java
#	test/src/test/java/hudson/model/ViewTest.java
2019-04-09 16:19:56 +02:00
Baptiste Mathus 624e6bc40f Merge pull request #3971 from jenkinsci/REMOVE_DEBUG_TIMEOUT
[simple] Remove debug timeout that was forgotten
2019-04-09 15:17:55 +02:00
Baptiste Mathus 9330635821 Merge pull request #3944 from jsoref/SECURITY-904-followup
[SECURITY-904] Fold tests back into normal files
2019-04-09 14:12:49 +02:00
Wadeck Follonier 49480ed4ca Remove debug timeout that was forgotten 2019-04-09 10:21:38 +02:00
Jesse Glick eb1ff779cc JVM crashes during tests can leave behind HotSpot dumps. 2019-04-08 21:24:05 -04:00
Kohsuke Kawaguchi 14498f463d [maven-release-plugin] prepare for next development iteration 2019-04-08 18:17:40 -07:00
Kohsuke Kawaguchi 10239406d3 [maven-release-plugin] prepare release jenkins-2.172 2019-04-08 18:17:36 -07:00
Baptiste Mathus 58dfce4b1c Merge pull request #3425 from aviadatsnyk/patch-1
[JENKINS-56931] handle absolute paths correctly when unzipping
2019-04-08 21:51:12 +02:00
Jesse Glick 56107eab87 Limiting system properties transmitted to the agent to those for which this has been explicitly indicated as safe. 2019-04-08 14:28:30 -04:00
Jesse Glick 92c5fe6222 Merge branch 'master' into TaskListener-flush 2019-04-08 14:01:56 -04:00
Jesse Glick e57d7a5bdf Merge pull request #3959 from jglick/LineTransformationOutputStream.Delegating
Introduced LineTransformationOutputStream.Delegating
2019-04-08 13:02:17 -04:00
Daniel Beck 6b4c6c955d Merge branch 'master' into security-master 2019-04-08 17:18:26 +02:00
Wadeck Follonier 36ab43f6af Add tests (also for #3402) 2019-04-08 11:58:33 +02:00
Kohsuke Kawaguchi 32b4bfb3a2 [maven-release-plugin] prepare for next development iteration 2019-04-07 01:32:54 -07:00
Kohsuke Kawaguchi 38faed357c [maven-release-plugin] prepare release jenkins-2.171 2019-04-07 01:32:46 -07:00