Commit Graph
17505 Commits
Author SHA1 Message Date
kohsuke 5167a64490 added a mechanism to perform a method parameter binding for CLI, which is somewhat akin to how Stapler performs a method parameter binding for HTTP requests.
This makes it much easier to expose CLI commands from existing model objects.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21448 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-04 00:44:57 +00:00
kohsuke c03af5e9c1 bumped up to a new version
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21447 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-04 00:21:21 +00:00
kohsuke 1642a98e64 turns out these are unnecessary.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21446 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-03 23:46:24 +00:00
kohsuke 65de7809ba recording these code before I delete them.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21445 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-03 23:45:47 +00:00
kohsuke 75c670fae6 Merged revisions 21412 via svnmerge from
https://svn.dev.java.net/svn/hudson/branches/rc

........
  r21412 | abayer | 2009-09-03 08:55:53 -0700 (Thu, 03 Sep 2009) | 1 line
  
  Fixing rendering bug
........


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21425 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-03 18:57:51 +00:00
kohsuke 0e8be7ac8f Merged revisions 21400 via svnmerge from
https://svn.dev.java.net/svn/hudson/branches/rc

........
  r21400 | kohsuke | 2009-09-02 18:39:44 -0700 (Wed, 02 Sep 2009) | 1 line
  
  bundling subversion 1.7
........


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21410 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-03 14:45:45 +00:00
kohsuke f1577378b3 been here too long to claim it's still experimental.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21397 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-03 00:36:30 +00:00
kohsuke 1fc3aec647 Merged revisions 21391 via svnmerge from
https://svn.dev.java.net/svn/hudson/branches/rc

........
  r21391 | kohsuke | 2009-09-02 16:46:59 -0700 (Wed, 02 Sep 2009) | 2 lines
  
  fixed a possible race condition. I noticed that Hudson-on-Hudson was hanging because the main thread was Object.wait-ing forever with no trace of a build.
  OneShotEvent avoids this problem.
........


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21392 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-02 23:50:46 +00:00
kohsuke 66bf21ba97 Merged revisions 21385-21386 via svnmerge from
https://svn.dev.java.net/svn/hudson/branches/rc

........
  r21385 | kohsuke | 2009-09-02 15:41:39 -0700 (Wed, 02 Sep 2009) | 1 line
  
  Fixed a random test failure, which was caused by PingThread detecting communication problem while it's being orderly shut down.
........
  r21386 | kohsuke | 2009-09-02 15:41:57 -0700 (Wed, 02 Sep 2009) | 1 line
  
  indentation fix.
........


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21387 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-02 23:06:15 +00:00
kohsuke cad0223491 Improving error handling to better understand the problem redsolo is facing:
testThatUsernameWithDifferentCasingIsNotDisplayedAsOne(hudson.plugins.cigame.ScoreCardActionIntegrationTest)  Time elapsed: 0 sec  <<< ERROR!
java.io.IOException: Access is denied
        at java.io.WinNTFileSystem.createFileExclusively(Native Method)
        at java.io.File.checkAndCreate(File.java:1704)
        at java.io.File.createTempFile(File.java:1793)
        at org.jvnet.hudson.test.TemporaryDirectoryAllocator.allocate(TemporaryDirectoryAllocator.java:63)
        at org.jvnet.hudson.test.HudsonHomeLoader$1.allocate(HudsonHomeLoader.java:54)
        at org.jvnet.hudson.test.HudsonHomeLoader$CopyExisting.allocate(HudsonHomeLoader.java:83)
        at org.jvnet.hudson.test.HudsonHomeLoader$Local.allocate(HudsonHomeLoader.java:123)
        at org.jvnet.hudson.test.HudsonTestCase.newHudson(HudsonTestCase.java:296)
        at org.jvnet.hudson.test.HudsonTestCase.setUp(HudsonTestCase.java:223)
        at junit.framework.TestCase.runBare(TestCase.java:132)
        at junit.framework.TestResult$1.protect(TestResult.java:110)
        at junit.framework.TestResult.runProtected(TestResult.java:128)
        at junit.framework.TestResult.run(TestResult.java:113)
        at junit.framework.TestCase.run(TestCase.java:124)
        at junit.framework.TestSuite.runTest(TestSuite.java:232)
        at junit.framework.TestSuite.run(TestSuite.java:227)
        at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:91)
        at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
        at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21372 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-02 20:34:16 +00:00
kohsuke 620e385751 Merged revisions 21368 via svnmerge from
https://svn.dev.java.net/svn/hudson/branches/rc

........
  r21368 | kohsuke | 2009-09-02 13:14:25 -0700 (Wed, 02 Sep 2009) | 33 lines
  
  wait until the channel terminates normally to avoid random test failures like this:
  
  junit.framework.AssertionFailedError: exit code should have been 0 expected:<0> but was:<255>
  	at junit.framework.Assert.fail(Assert.java:47)
  	at junit.framework.Assert.failNotEquals(Assert.java:285)
  	at junit.framework.Assert.assertEquals(Assert.java:64)
  	at junit.framework.Assert.assertEquals(Assert.java:201)
  	at hudson.remoting.ChannelRunner$Fork.stop(ChannelRunner.java:141)
  	at hudson.remoting.RmiTestBase.tearDown(RmiTestBase.java:53)
  	at junit.framework.TestCase.runBare(TestCase.java:130)
  	at junit.framework.TestResult$1.protect(TestResult.java:106)
  	at junit.framework.TestResult.runProtected(TestResult.java:124)
  	at junit.framework.TestResult.run(TestResult.java:109)
  	at junit.framework.TestCase.run(TestCase.java:118)
  	at junit.framework.TestSuite.runTest(TestSuite.java:208)
  	at junit.framework.TestSuite.run(TestSuite.java:203)
  	at junit.framework.TestSuite.runTest(TestSuite.java:208)
  	at junit.framework.TestSuite.run(TestSuite.java:203)
  	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  	at java.lang.reflect.Method.invoke(Method.java:597)
  	at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
  	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
  	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
  	at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
  	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  	at java.lang.reflect.Method.invoke(Method.java:597)
  	at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
  	at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
........


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21371 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-02 20:30:06 +00:00
pgweiss 2902da9c06 In executor status pane provide separate links to projects and builds.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21366 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-02 19:13:02 +00:00
pgweiss e9def49a05 If a project is not set for concurrent builds and there is more than one job
in the queue (e.g. if the build is parameterized), then don't make more than
one of them runnable.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21365 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-02 19:11:20 +00:00
kohsuke 2e1a591e3a Initialized merge tracking via "svnmerge" with revisions "1-21360" from
https://www.dev.java.net/svn/hudson/branches/rc


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21362 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-02 17:25:07 +00:00
kohsuke b4384c3a56 adding bit more assertions to understand why this test is flaky.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21358 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-02 17:08:39 +00:00
kohsuke d8667f54dd enabling back tests.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21357 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-02 17:00:51 +00:00
kohsuke b44df39a3a disabling the multi classloader support, since this is breaking things too much and we need more time before introducing this feature.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21356 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-02 17:00:09 +00:00
kohsuke 7f951d2873 experimented with findbugs and PMD so that I can add custom rules, but it didn't work out well
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21345 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-02 14:54:30 +00:00
mindless b07d3d007d Add validator and submit-time checks for axis names; uses Hudson.checkGoodName now,
though probably could be even more restrictive since these are used as shell variables.
Also added duplicate name check when form is submitted.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21340 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-02 03:48:16 +00:00
kohsuke 7d6e866816 Fixed a bug in Winstone that hides the root cause of exceptions.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21336 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-02 02:59:28 +00:00
mindless 480dd9898d Make validator for new job name warn about invalid characters (instead of not
getting this error until you click Ok).
Make ComputerSet store the trimmed name when adding a new slave.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21332 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-02 01:05:54 +00:00
kohsuke 88857a6f6c avoid "2nd instance" test failures. The stack trace was:
java.lang.NullPointerException
	at com.gargoylesoftware.htmlunit.html.HtmlPage.loadFrames(HtmlPage.java:1732)
	at com.gargoylesoftware.htmlunit.html.HtmlPage.initialize(HtmlPage.java:153)
	at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:455)
	at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:340)
	at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:390)
	at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:377)
	at org.jvnet.hudson.test.HudsonTestCase$WebClient.getPage(HudsonTestCase.java:1002)
	at org.jvnet.hudson.test.HudsonTestCase.tearDown(HudsonTestCase.java:257)
	at junit.framework.TestCase.runBare(TestCase.java:130)
	at junit.framework.TestResult$1.protect(TestResult.java:106)
	at junit.framework.TestResult.runProtected(TestResult.java:124)
	at junit.framework.TestResult.run(TestResult.java:109)
	at junit.framework.TestCase.run(TestCase.java:118)
	at junit.framework.TestSuite.runTest(TestSuite.java:208)
	at junit.framework.TestSuite.run(TestSuite.java:203)
	at sun.reflect.GeneratedMethodAccessor232.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
	at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
	at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21328 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-01 21:57:49 +00:00
kohsuke b0c76f7b51 Newline in the header was a bad idea because it can be eaten away by BufferedReader.readLine(), plus it can be affected by transports between CR/LF conversions.
This should fix the test problem.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21327 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-01 21:53:00 +00:00
kohsuke 0ddd345f2f include Groovy-compiled test cases to the coverage, too.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21326 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-01 20:41:42 +00:00
kohsuke 9a3caa1d31 Fixed a regression in 1.112. Adding more tests about i18n chars.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21325 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-01 20:07:18 +00:00
abayer feb3b5b508 [FIXED HUDSON-1938] Moved Maven project's block when upstream is building functionality up to AbstractProject. Now available as advanced option for all project types
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21323 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-01 16:39:26 +00:00
kohsuke 3b67a0847d [FIXED HUDSON-4245] Fixed a bug in the tabular display of a matrix. Will be in 1.323.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21322 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-01 16:07:43 +00:00
mindless acc727d626 [FIXED HUDSON-2670] Matrix project includes axis values in URLs..
add encoding when needed for characters in these values, particularly /

- Use Util.rawEncode in AbstractItem.getShortUrl() so that axis values
  needing encoding will be encoded
- STAPLER-8 fix makes Stapler properly parse a URL with %2F (don't 
  split on %2F, only a real /)
- Stapler fix also makes urls generated via Ancestor class maintain proper encoding
- Add MatrixBuild.RunPtr.getShortUrl() and use this in MatrixBuild/ajaxMatrix.jelly
  so links to combinations are properly encoded
- Use Util.rawEncode in MatrixProject.getRootDirFor() so directories created on
  the filesystem won't use illegal characters; matching decode() in
  MatrixProject.loadConfigurations()



git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21321 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-01 16:02:38 +00:00
kohsuke 5b5cf3a18b Added the first test case for Hudson CLI.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21320 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-01 14:10:17 +00:00
sogabe d934a5dafc i18n & Japanese localization
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21318 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-01 10:33:39 +00:00
kohsuke b23751b120 [FIXED HUDSON-1261] Bundling the patched activation.jar that fixes the ClassCastException problem.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21316 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-01 02:06:22 +00:00
kohsuke e63734f2a9 dump the slave launch log so that we can see why it failed to go online.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21306 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-01 01:27:46 +00:00
kohsuke faaf185362 Footer now includes a timestamp
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21305 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-01 01:19:59 +00:00
kohsuke c5f4154cab bumping up to the latest Stapler
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21301 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-01 00:37:27 +00:00
kohsuke 3cfea3d1fa Merged revisions 21146,21189-21190,21192,21201 via svnmerge from
https://www.dev.java.net/svn/hudson/branches/rc

........
  r21146 | kohsuke | 2009-08-27 18:35:09 -0700 (Thu, 27 Aug 2009) | 1 line
  
  [FIXED HUDSON-4304] Using su instead of "daemon --user".In 1.322.
........
  r21189 | kohsuke | 2009-08-28 16:30:35 -0700 (Fri, 28 Aug 2009) | 1 line
  
  updated to 1.6
........
  r21190 | kohsuke | 2009-08-28 16:49:57 -0700 (Fri, 28 Aug 2009) | 1 line
  
  [maven-release-plugin] prepare release hudson-1_322
........
  r21192 | kohsuke | 2009-08-28 16:50:09 -0700 (Fri, 28 Aug 2009) | 1 line
  
  [maven-release-plugin] prepare for next development iteration
........
  r21201 | kohsuke | 2009-08-28 19:11:44 -0700 (Fri, 28 Aug 2009) | 1 line
  
  updated changelog as a part of the release
........


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21299 71c3de6d-444a-0410-be80-ed276b4c234a
2009-08-31 23:49:17 +00:00
abayer 44f17debc4 Adding light-test profile, to disable main/test's integration tests without also disabling main/core's unit tests, etc
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21265 71c3de6d-444a-0410-be80-ed276b4c234a
2009-08-30 22:00:35 +00:00
kohsuke 5ede2ec4ea tab -> WS
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21262 71c3de6d-444a-0410-be80-ed276b4c234a
2009-08-30 20:28:57 +00:00
kohsuke 5bcdc23da1 rolling back rev.21074. The user shuoldn't worry about /cli suffix.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21258 71c3de6d-444a-0410-be80-ed276b4c234a
2009-08-30 19:59:03 +00:00
kohsuke 65f2c1fffa moved the method to where it belongs to.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21256 71c3de6d-444a-0410-be80-ed276b4c234a
2009-08-30 19:52:36 +00:00
kohsuke ef84348861 follow up fix to rev.21175.
- toString -> getShortDescription so that ParameterValue.getShortDescription() can explain what this method is expected to return.
- added proper HTML escape to avoid XSS vulnerability.
- modified to use StringBuilder for string concatanation.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21252 71c3de6d-444a-0410-be80-ed276b4c234a
2009-08-30 16:33:39 +00:00
mindless 96bae19e4c [HUDSON-4344] urlencode name when redirecting to rename?newName=..
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21208 71c3de6d-444a-0410-be80-ed276b4c234a
2009-08-29 17:51:00 +00:00
pgweiss 427dd0fdb1 Expand the tooltip of a queued item to include the parameters if it is for a parameterized build.
This is very useful when you are using the parameterized trigger plugin and have dozens of queued
jobs -- you can now know which jobs to kill.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21175 71c3de6d-444a-0410-be80-ed276b4c234a
2009-08-28 22:16:22 +00:00
kohsuke 21369d995c adding links to the load statistics remote API.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21168 71c3de6d-444a-0410-be80-ed276b4c234a
2009-08-28 19:06:29 +00:00
lifeless dec6b35bd2 - Moves LabelFinder to hudson.model, as its a core facility, not necessarily a
task or even slave related.
- Removes all caching of labels. Slow extensions can cache (see nodetags).
- Pulls up common implementations of getAssignedLabels and an immutable
  getDynamicLabels facility into Node. getDynamicLabels was previously public,
  but never exported.
- factored out some trivially duplicated code into Node.getHudsonlabel
- changes LabelFinder to return Collection<Label> as that is the data that
  higher layers want to work with, and there is no good reason to force lookups
  when implementations can and should cache themselves.
- Deletes OSLabeler, a disabled version of the LabelFinder extension point -
  there is no need for dead code to be keep in the tree.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21160 71c3de6d-444a-0410-be80-ed276b4c234a
2009-08-28 10:47:25 +00:00
mindless 2999b2c405 [FIXED HUDSON-4286] Changed health level boundaries from 0-19, ... 80+
to 0-20, 21-40, ... 81+ and removed hack in Job.java lowering build health
scores by one so 4/5 wouldn't be "sunny".  Now 80 is in the 2nd bracket so
hack not needed.
Left image filenames unchanged for compatibility, in case anyone uses
these images for other things.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21152 71c3de6d-444a-0410-be80-ed276b4c234a
2009-08-28 03:39:29 +00:00
kohsuke 3236c56d3b Exposing load statistics to the remote API.
(<a href="http://www.nabble.com/time-in-queue-td25127970.html">report</a>)


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21147 71c3de6d-444a-0410-be80-ed276b4c234a
2009-08-28 02:02:54 +00:00
kohsuke c09523609e i18n and clarified what it was trying to install, since that's not obvious.
See http://www.nabble.com/Don%27t-understand-build-messages...-td25177740.html

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21144 71c3de6d-444a-0410-be80-ed276b4c234a
2009-08-28 01:16:20 +00:00
kohsuke 60bccc26eb code should be where it belongs to.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21133 71c3de6d-444a-0410-be80-ed276b4c234a
2009-08-27 21:20:39 +00:00
kohsuke f263d84940 Fixed a race condition that appear as test failures. This is caused by the remote peer sending us a request before we get to obtain the remote capacity.
I moved the capability exchange to the preamble negotiation to avoid this problem.

----
 java.lang.NullPointerException
	at hudson.remoting.UserRequest._serialize(UserRequest.java:136)
	at hudson.remoting.UserRequest.perform(UserRequest.java:118)
	at hudson.remoting.UserRequest.perform(UserRequest.java:48)
	at hudson.remoting.Request$2.run(Request.java:236)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:619)


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21132 71c3de6d-444a-0410-be80-ed276b4c234a
2009-08-27 21:19:15 +00:00
kalecser 40b844c81b Improving some pt_BR messages
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21126 71c3de6d-444a-0410-be80-ed276b4c234a
2009-08-27 19:04:25 +00:00