Commit Graph
4802 Commits
Author SHA1 Message Date
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
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 6af78cb11b Merge branch 'master' into build-symlink-JENKINS-37862 2019-07-11 12:30:58 -04: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
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
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
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 2019-06-30 19:33:39 -07: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
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
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
Josh SorefandWadeck Follonier 45cf3ab892 Remove unused variable
Co-Authored-By: Wadeck Follonier <Wadeck@users.noreply.github.com>
2019-05-15 08:48:32 -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
Josh Soref e1259ec46a Clarify test expectations by converting comments into code 2019-05-08 09:51:43 -04:00
Josh Soref 2cb47c5465 Remove Matchers wildcard 2019-05-07 17:19:20 -04:00
Josh Soref 9a729c0c2f Remove Matchers class 2019-05-07 17:17:27 -04:00
Josh Soref d582f0fbc0 Remove handling of winstone configuration bits
Write long essays explaining why this code is actually very simplistic and has so few conditions.
2019-05-07 17:13:54 -04: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