Commit Graph
1882 Commits
Author SHA1 Message Date
Kohsuke Kawaguchi 8d0f7f5688 [FIXED JENKINS-17247]
Reimplemented a proper topological sort and generates a total order
comparison function.
2013-06-19 18:07:01 -07:00
Kohsuke Kawaguchi 216f5c6a45 [FIXED JENKINS-18417]
FingerprintCleanupThread can now partially clean up a fingerprint record
by removing portions of it that's not referencing existing stuff.
2013-06-19 15:21:45 -07:00
Jesse Glick b0c222477b [FIXED JENKINS-17713] JobColumn/column.jelly needs to have an itemGroup for display name calculation.
So passing it in explicitly from both the view main page and from the Maven module set modules page.
A more automatic solution might be to make getRelativeDisplayNameFrom use Ancestor.
2013-06-19 09:44:26 -07:00
Kohsuke Kawaguchi 982397ece1 the trunk is toward 1.521-SNAPSHOT 2013-06-19 09:34:29 -07:00
Kohsuke Kawaguchi 80cf49068f [FIXED JENKINS-18259]
Added a listener that gets called at the end of the test to provide opportunity for a cleanup.
This avoids the code duplication between HudsonTestCase vs JenkinsRule, too.
2013-06-19 09:28:06 -07:00
ikedam 8c5cf05fc5 [JENKINS-18259] added a test to reproduce JENKINS-18259.
(cherry picked from commit 9c4cb4b5ec)
2013-06-19 09:28:06 -07:00
Kohsuke Kawaguchi 61c75ef7d4 minor doc improvement 2013-06-19 09:28:06 -07:00
Jesse Glick f8ec4c15c2 [JENKINS-17713] Not yet fixed.
Links are now correct, thanks to Ancestor.getRelativePath as called from getRelativeLinkTo being correct.
But getRelativeNameFrom is not working, so anchor texts are ‘project » module’ rather than simply ‘module’.
2013-06-19 07:02:13 -04:00
Kohsuke Kawaguchi 7e006e08dd Touching up on the fix by ikedam 2013-06-18 17:11:23 -07:00
ikedam 2b9a083fbf [FIX JENKINS-4409] Release plugins and class loaders when JVM shuts down. 2013-06-18 17:07:08 -07:00
Jesse Glick 8032848346 [FIXED JENKINS-18373] View.doConfigSubmit must rawEncode its name. 2013-06-17 10:03:38 -04:00
Jesse Glick fe70d19110 JUnit 4. 2013-06-17 09:59:34 -04:00
Kohsuke Kawaguchi 63aba90db1 Introduced a new permission to control whether a given slave can accept a build.
... as per the discussion in the dev list

Related: https://groups.google.com/forum/?fromgroups#!topic/jenkinsci-dev/TMm-h6Hnb6Q
2013-06-13 15:42:00 +03:00
Jesse Glick 984c4cf44e Setting a nonempty contextPath turned up a couple problems in the test harness; goTo must be given a relative path.
https://ci.jenkins-ci.org/job/jenkins_main_trunk/2602/testReport/junit/hudson.model/JobTest/readPermission/
com.gargoylesoftware.htmlunit.FailingHttpStatusCodeException: 404 Not Found for http://localhost:47898/jenkins//j_acegi_security_check
	at com.gargoylesoftware.htmlunit.WebClient.throwFailingHttpStatusCodeExceptionIfNecessary(WebClient.java:549)
	at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:333)
	at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:357)
	at com.gargoylesoftware.htmlunit.html.HtmlForm.submit(HtmlForm.java:196)
	at org.jvnet.hudson.test.JenkinsRule$WebClient.login(JenkinsRule.java:1776)
	at org.jvnet.hudson.test.JenkinsRule$WebClient.login(JenkinsRule.java:1788)
	at hudson.model.JobTest.readPermission(JobTest.java:182)
2013-06-13 06:57:10 -04:00
Jesse Glick bff177dfa1 Deprecating HudsonTestCase. 2013-06-12 16:23:11 -04:00
Jesse Glick 1ed4e4b80f Set a nonempty context path to strengthen tests, just like we do for hpi:run & hudson-dev:run. 2013-06-12 16:07:39 -04:00
Kohsuke Kawaguchi e3a1a78f6d ProjectAuthenticator -> QueueItemAuthenticator
As Jesse pointed out, contextual information is often useful in authenticating the build, which means we need to take Queue.Item (initially AbstractBuild was the parameter, which provided the context, and I failed to accommodate that in transition to AbstractProject.)

To still allow Queue.Tasks to provide a meaningful value fallback to Queue.Task.getDefaultAuthentication() as opposed to hard code it to ACL.SYSTEM. This allow plugins like remote-terminal-access to supply a meaningful secure value without forcing a configuration change to the user.
2013-06-12 17:20:17 +03:00
Kohsuke Kawaguchi b7027563fe how Jesse finds all the typos, I have no idea 2013-06-12 16:40:50 +03:00
Kohsuke Kawaguchi 2d09a0e54b [FIXED JENKINS-18285] Merge the feature branch 2013-06-12 13:56:35 +03:00
Kohsuke Kawaguchi 5e78a17fab a test case that verifies whether the queue honors the permissions 2013-06-12 13:08:47 +03:00
Kohsuke Kawaguchi 931777f0c8 added a test case for ProjectAuthenticator 2013-06-12 13:08:47 +03:00
Jesse Glick cc2a91bdbd Merge commit '9d8ee80' 2013-06-11 06:55:41 -04:00
Jesse Glick 9d8ee801f2 Fixed regression in AbstractItem.getShortUrl from e50f0f5 caught by MatrixTest.testSpaceInUrl.
https://ci.jenkins-ci.org/job/jenkins_main_trunk/2590/testReport/junit/hudson.matrix/MatrixTest/testSpaceInUrl/
2013-06-11 06:54:52 -04:00
Oliver Gondža 7ac7967f55 [FIXED JENKINS-18282] Optionally override name from XML in create-node CLI command 2013-06-11 12:31:37 +02:00
Oliver Gondža a6203831c0 Introduce CLICommandInvoker for testing purposes 2013-06-11 12:31:37 +02:00
Oliver Gondža df786136bd [JENKINS-18282] Introduce create-node CLI command 2013-06-11 12:31:37 +02:00
Oliver Gondža 92a74104af [JENKINS-18282] Introduce update-node CLI command 2013-06-11 12:31:37 +02:00
Oliver Gondža 548e9b8bbf [JENKINS-18282] Introduce get-node CLI command 2013-06-11 12:31:36 +02:00
Kohsuke Kawaguchi b2d9e7dfb7 the trunk is toward 1.520-SNAPSHOT 2013-06-11 03:04:29 -07:00
Jesse Glick c4e3adde15 Better diagnosis when resolvePluginFile would be about to return null. 2013-06-10 17:07:48 -04:00
Jesse Glick d10fbc5eac [FIXED JENKINS-18274] LogRecorder.getSlaveLogRecords 2013-06-10 15:43:23 -04:00
Jesse Glick 6ea8c4943d JUnit 4. 2013-06-10 14:35:51 -04:00
Jesse Glick b1c82f1e30 stephenc asks to use TODO rather than XXX 2013-06-10 11:53:13 -04:00
Jesse Glick e67746c97f Queue.clearLeftItems to fix AbstractProjectTest.testGetBuildAfterGC test failure after 84a2593. 2013-06-10 10:52:16 -04:00
Jesse Glick aec064adc5 Make assertGC more useful by showing root references in case of failure. 2013-06-10 10:44:32 -04:00
Kohsuke Kawaguchi ff91381bc5 Added PlexusModuleContributor extension point.
This came up with a conversation with JFrog folks who neede to insert a
custom Plexus component to tweak the behaviour.

This scheme allows the caller to insert additional jar files into the
Maven process.
2013-06-07 10:58:11 +03:00
Jesse Glick 2c23e643fa @Bug 2013-06-05 16:04:21 -04:00
Jesse Glick dfe2b9a21a Fixing casing of test method. 2013-06-05 15:51:33 -04:00
Jesse Glick bd709b0631 [JENKINS-17125] Establishing baseline FingerprintAction behavior that should not be regressed. 2013-06-05 15:06:29 -04:00
Jesse Glick 291c39ad42 JUnit 4. 2013-06-05 14:42:55 -04:00
imod 32b53335c6 [FIXED JENKINS-17555] maven should take EnvironmentContributingAction into account to resolve variables 2013-06-04 21:14:01 +02:00
Kohsuke Kawaguchi 8eefed28c8 the trunk is toward 1.519-SNAPSHOT 2013-06-02 21:09:40 -07:00
Jesse Glick be5cd4fd16 [FIXED JENKINS-16023] Use permalinks for as many Job.getLast*Build methods as possible. 2013-05-30 18:10:55 -04:00
Jesse Glick 2b0bd977f3 JUnit 4. 2013-05-30 17:51:45 -04:00
Oliver Gondža 0c00faecaa Bump mailer version to 1.5 2013-05-29 19:24:23 +02:00
Jesse Glick a5ac54eac8 [JENKINS-17713] Preparing unit and functional test coverage. 2013-05-29 12:50:45 -04:00
Jesse Glick 93b82be199 JUnit 4. 2013-05-29 12:42:44 -04:00
Kohsuke Kawaguchi 1b4b557c26 the trunk is toward 1.518-SNAPSHOT 2013-05-28 08:00:57 -07:00
lvotypko 728a805eee Add test if jobs do not stuck in pendings 2013-05-28 08:09:51 +02:00
Seiji Sogabe d0d3ea1cb5 Merge pull request #790 from damienfinck/master
Add French translation
2013-05-25 02:38:08 -07:00