Commit Graph
1419 Commits
Author SHA1 Message Date
Jesse Glick fb0ad71b71 Ensure that resolveDependencyJar works for NetBeans compile-on-save (and possibly other IDE’s similar features) even when plugin dependencies are snapshots (possibly in the reactor). 2014-03-11 14:15:26 -04:00
Kohsuke Kawaguchi bd4f6bcf4c merged back the RC branch 2014-03-03 06:58:15 -08:00
Kohsuke Kawaguchi 7b0daade1f Timestamp has expired 2014-03-02 22:25:53 -08:00
Jesse Glick 00d27176f3 [FIXED JENKINS-22001] Simpler fix of JENKINS-19446 that does not introduce asynchronous behavior. 2014-02-28 14:34:29 -05:00
Jesse Glick 334ce1be69 [JENKINS-21984] Disabling cert check on updateDirectlyWithJson since the certificate is now expired, and it is no good to have a test which is known to start failing at a particular time in the future! 2014-02-28 10:45:38 -05:00
Jesse Glick c87b7daf79 [JENKINS-21984] Checking stable UC as well. Cannot reproduce certificate problem in test. 2014-02-28 10:44:55 -05:00
Jesse Glick ef474202e5 @RandomlyFails 2014-02-26 18:42:54 -05:00
Jesse Glick 7c568178f3 [FIXED JENKINS-21958] FilePath.copyRecursiveTo given a scanner including a symlink but not any regular file in the same directory would neglect to create the parent directory on the destination and thus not copy the link.
(Util.createSymlink is partly to blame for not throwing a descriptive IOException when it fails to create a link,
but this is its historical behavior needed for compatibility.
copyRecursiveTo also continues to suppress error text from this method because there is nowhere for it to go.
Perhaps need a new variant of createSymlink that is guaranteed to either have created the link or throw an exception.)
2014-02-26 10:13:39 -05:00
Jesse Glick fdda9ca656 [FIXED JENKINS-16332] Ensure that User records are saved when the fullName is not recoverable from the id.
Otherwise User.get(id).getFullName() after restarting Jenkins will produce the wrong result.
2014-02-23 17:48:44 -05:00
Jesse Glick 3ec7e562fe Trying to diagnose recent CI failures of HtmlUnit calls.
For example https://jenkins.ci.cloudbees.com/job/core/job/jenkins-core-validated-merge/38/testReport/lib.layout/LayoutTest/rejectedLinks/ failed with:
java.io.IOException: GET http://localhost:52099/jenkins/login failed
	at java.net.SocketInputStream.socketRead0(Native Method)
	at java.net.SocketInputStream.read(SocketInputStream.java:152)
	at java.net.SocketInputStream.read(SocketInputStream.java:122)
	at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
	at java.io.BufferedInputStream.read(BufferedInputStream.java:254)
	at org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:78)
	at org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:106)
	at org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1116)
	at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.readLine(MultiThreadedHttpConnectionManager.java:1413)
	at org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1973)
	at org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1735)
	at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1098)
	at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
	at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
	at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
	at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
	at com.gargoylesoftware.htmlunit.HttpWebConnection.getResponse(HttpWebConnection.java:101)
	at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseFromWebConnection(WebClient.java:1456)
	at com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.java:1387)
	at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:328)
	at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:389)
	at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:374)
	at org.jvnet.hudson.test.JenkinsRule$WebClient.goTo(JenkinsRule.java:1944)
	at org.jvnet.hudson.test.JenkinsRule$WebClient.goTo(JenkinsRule.java:1926)
	at lib.layout.LayoutTest.rejectedLinks(LayoutTest.java:44)
which makes little sense since the named IOException is actually thrown from HttpWebConnection.java:130.
Perhaps Surefire is not reporting the original cause correctly, conflating the wrapper’s message with the original stack trace.
As a temporary measure, printing the original stack trace to stderr if there is any.
2014-02-23 16:57:05 -05:00
Jesse Glick f360ce3ee0 Javadoc for Queue.Task claimed they were compared using .equals(), but in critical cases this was not actually true.
Does not matter for the common case of Job, but when implementing custom tasks this could cause duplicate queue items (and executables).
2014-02-20 11:05:32 -05:00
Jesse Glick b2c69b4a35 Split RawHtmlMarkupFormatter into a bundled plugin (antisamy-markup-formatter).
https://trello.com/c/NvZt4WXu/15-rawhtmlmarkupformatter
2014-02-17 12:22:53 -05:00
Kohsuke Kawaguchi c88698c0af [JENKINS-21261] while I originally misdiagnosed the problem, the test is still marginally useful. 2014-02-14 18:29:21 -08:00
Kohsuke Kawaguchi bdd8ca3fe4 merged back the RC branch 2014-02-14 16:34:44 -08:00
Jesse Glick 724f9e0dfc Strengthening the reverse proxy admin monitor to detect nontransparent slash encoding (/ vs. %2F).
Apache in its default configuration botches this: http://stackoverflow.com/a/9933890/12916
2014-02-13 15:04:32 -05:00
Jesse Glick abc77438d2 Merge branch 'security' into security-rc
Conflicts:
	core/src/main/java/hudson/Functions.java
	core/src/main/java/hudson/markup/MyspacePolicy.java
	core/src/main/java/hudson/util/RobustReflectionConverter.java
	core/src/main/resources/lib/layout/layout.jelly
	war/pom.xml
2014-02-11 21:00:54 -05:00
Jesse Glick b6b2a367a7 [FIXED SECURITY-109] SECURITY-55 fix to BuildTrigger configuration failed if downstream project was not visible. 2014-02-11 14:22:46 -05:00
Jesse Glick bf53919856 [FIXED SECURITY-93] PasswordParameterDefinition should serve existing default value in encrypted form.
And strengthen functional tests (using configRoundTrip) to ensure that the same mistake is not made elsewhere.
2014-02-11 14:19:39 -05:00
Stefan Wolf be7a97ee32 [FIXED JENKINS-17606] Reuse existing fingerprint action if present.
Prevents multiple FingerprintActions.
2014-02-04 22:34:13 +01:00
CloudBees DEV@Cloud ef63ccac0a Merge commit 'cd526e99e63ae362f2d1ce1a04c3c68a38032a5c' 2014-02-04 16:35:04 +00:00
Jesse Glick cd526e99e6 [FIXED JENKINS-21023] Rewrote WorkspaceCleanupThread to determine where workspaces for known items should be, rather than looking for directories that look like they might be workspaces.
One key advantage is that this correctly handles the new default workspace location on the master.
Another is that this allows folders to be correctly skipped, and jobs in folders to be correctly deleted.
A subtler advantage would be handling of configured nondefault workspace locations, and compatibility with WorkspaceLocator.
(Orphaned workspaces from deleted jobs are not removed, but these were not removed before either.)
2014-02-04 11:34:14 -05:00
Ulli Hafner 48cb1304c5 Removed "Jenkins" prefix from plugin display names.
Since sorting of plugins in the update manager is based on displayName
this name should not have a common prefix otherwise it's hard to find
a given plugin name.
2014-02-04 15:25:31 +01:00
Oliver Gondža 380dad924e Merge pull request #1109 from olivergondza/JENKINS-21474
[JENKINS-21474] Fix NPE in View.getComputers()
2014-02-01 00:55:52 -08:00
Oliver Gondža e31f8dc2d3 [JENKINS-21474] Fix NPE in View.getComputers() 2014-01-31 23:59:25 +01:00
Kevin P. Fleming d33a73591d Remove unnecessary executable bits on source files 2014-01-31 08:38:07 -05:00
Oliver Gondža 3aa812fe1f Refactor CLI tests 2014-01-29 23:31:49 +01:00
Oliver Gondža 150b8de997 Merge pull request #1103 from olivergondza/refactor-offline-cause
Introduce `OfflineCause.UserCause`
2014-01-29 22:49:32 +01:00
Jesse Glick 08ab1b788f Let -Dignore.random.failures work on UpdateCenterTest, which is currently failing and so blocking validated merge. 2014-01-27 12:43:31 -08:00
Oliver Gondža 244e4dcd59 Introduce OfflineCause.UserCause 2014-01-27 18:34:52 +01:00
Oliver Gondža c8930ed1b8 Refactor #992 2014-01-12 18:04:05 +01:00
Oliver Gondža 2767724185 Fix #992 2014-01-10 14:47:21 +01:00
Oliver Gondža 25d8b96c61 Merge pull request #992 from lvotypko/ViewTest
Add tests
2014-01-10 12:06:26 +01:00
Jesse Glick cb623640cc [FIXED JENKINS-18694] Generalizing fix of JENKINS-18678 to include also rename of parent folders, taking advantage of JENKINS-18028 API. 2014-01-09 12:40:48 -05:00
Jesse Glick 6815152cd4 Merge branch 'master' into TransientActionFactory-JENKINS-18224 2014-01-08 19:05:57 -05:00
Jesse Glick a22e9feaae [JENKINS-18224] Introduced Actionable.replaceAction, allowing getActions() to be deprecated except for subclasses. 2014-01-08 17:36:21 -05:00
Jesse Glick ca1ab42491 Merge remote-tracking branch 'origin/master' into TransientActionFactory-JENKINS-18224 2014-01-08 17:19:35 -05:00
Jesse Glick 554be78b9b [JENKINS-18678] [JENKINS-18028] Confirming (as suggested in #1069 by @oleg-nenashev) that build history is retained after a move into a folder. 2014-01-08 16:38:06 -05:00
Jesse Glick 0b5927dc0d Merge branch 'master' into folder-moving 2014-01-08 16:20:36 -05:00
Jesse Glick 7c91c402a7 [FIXED JENKINS-21254] Ensuring that all <link>s offered on the /login page can be read even by anonymous users without Jenkins.READ. 2014-01-07 10:10:27 -05:00
Fernando Boaglio a1a7f282ff pt_BR translation (diagnosis + matrix + logging) 2014-01-05 00:08:08 -02:00
Jesse Glick d29a90150c Introduced @RandomlyFails annotation to make it easier to skip unreliable functional tests.
First tried using excludedGroups and trying to work around SUREFIRE-984.
Made some progress, but not ideal since marked tests are omitted from output, rather than being listed as ignored.
Throwing AssumptionViolatedException from JenkinsRule is much simpler and seems to work better.
https://github.com/junit-team/junit/issues/116 notes its limitations.
2014-01-02 16:27:48 -05:00
Jesse Glick b7d4c6a414 The jenkins_main_trunk job has been retired, so for now just skip these tests when running on any Jenkins server. 2014-01-02 15:00:01 -05:00
Jesse Glick bfaab5118d [JENKINS-18410] NPE from previous fix (fcdf749) under some conditions, which the test case was not exercising.
java.lang.NullPointerException
	at hudson.tasks.test.AggregatedTestResultPublisher$TestResultAction.getProject(AggregatedTestResultPublisher.java:173)
	at hudson.tasks.test.AggregatedTestResultPublisher$TestResultAction.<init>(AggregatedTestResultPublisher.java:146)
	at hudson.tasks.test.AggregatedTestResultPublisher$TestResultAction.<init>(AggregatedTestResultPublisher.java:135)
	at hudson.tasks.test.AggregatedTestResultPublisher.perform(AggregatedTestResultPublisher.java:90)
2014-01-02 13:34:42 -05:00
Jesse Glick 2756f08c13 Merge branch 'master' into folder-moving
Conflicts:
	core/src/main/java/hudson/model/Items.java
2014-01-02 12:51:42 -05:00
Jesse Glick fd97a2f5e8 Fingerprinter calls rebuildDependencyGraphAsync, so since this is now delayed by 500msec, tests incorrect as of 1.522 will now fail pretty reliably unless made to forcibly rebuild the graph. 2013-12-23 18:08:48 -05:00
Jesse Glick 1943801ba7 [JENKINS-18678] Reproduced problem in test. 2013-12-23 10:11:53 -05:00
Jesse Glick 6d3c2e0d84 [FIXED JENKINS-18680] Update members of a ListView using a regular listener, not View.onJobRenamed which does not work with folders. 2013-12-19 18:28:01 -05:00
Jesse Glick 9fc87f4a22 [FIXED JENKINS-18028] Providing a supported way to move an item between folders, firing changes as we go. 2013-12-19 12:22:01 -05:00
Jesse Glick 3f5b7e7624 ItemListener.fireOnDeleted 2013-12-18 17:43:04 -05:00
Jesse Glick 1d21017e3b [FIXED JENKINS-20008] Added DirectlyModifiableTopLevelItemGroup. 2013-12-18 17:26:25 -05:00