Commit Graph
32590 Commits
Author SHA1 Message Date
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
abayer a54fb69dce Rolling back changes - they made the tests pass on my system but now they fail erratically in the official build. Someone smarter than me should look into this. =)
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21117 71c3de6d-444a-0410-be80-ed276b4c234a
2009-08-27 16:43:21 +00:00
kohsuke dab996e26a improve the error diagnostics when Maven terminates abruptly.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21109 71c3de6d-444a-0410-be80-ed276b4c234a
2009-08-27 05:36:56 +00:00
abayer 8d02146fbd Added/increased delay on slave creations to deal with test failures due to timing problems
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21098 71c3de6d-444a-0410-be80-ed276b4c234a
2009-08-26 19:50:24 +00:00
abayer 00afaa5263 [FIXED HUDSON-4056] Added support for marking a new plugin version as configuration-incompatible with previous versions - see http://wiki.hudson-ci.org/display/HUDSON/Marking+a+new+plugin+version+as+incompatible+with+older+versions
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21097 71c3de6d-444a-0410-be80-ed276b4c234a
2009-08-26 19:46:36 +00:00
kohsuke cbb3e313ad Merged revisions 20928-20929,20939,20974-20975,20988,21009,21011,21015 via svnmerge from
https://www.dev.java.net/svn/hudson/branches/rc

........
  r20928 | kohsuke | 2009-08-19 14:47:13 -0700 (Wed, 19 Aug 2009) | 1 line
  
  test bug fix.
........
  r20929 | kohsuke | 2009-08-19 14:48:23 -0700 (Wed, 19 Aug 2009) | 1 line
  
  bumped up to a new version that has a trouble-shooting hook for resetting cached views
........
  r20939 | kohsuke | 2009-08-19 15:20:57 -0700 (Wed, 19 Aug 2009) | 1 line
  
  picking up subversion 1.5
........
  r20974 | kohsuke | 2009-08-20 11:50:04 -0700 (Thu, 20 Aug 2009) | 3 lines
  
      Hudson can make mistakes in binding plugins to their right /plugin/NAME/ URLs.
      (<a href="http://www.nabble.com/Custom-Plugin---No-external-resources-available-td25064554.html">report</a>)
........
  r20975 | kohsuke | 2009-08-20 12:05:11 -0700 (Thu, 20 Aug 2009) | 1 line
  
  Build history AJX update was buggy.
........
  r20988 | kohsuke | 2009-08-20 17:01:57 -0700 (Thu, 20 Aug 2009) | 3 lines
  
      Hudson wasn't working on WebLogic on Windows.
      (<a href="http://www.nabble.com/Re%3A-Hudson-on-Weblogic-10.3-td25038378.html#a25043415">report</a>)
........
  r21009 | kohsuke | 2009-08-21 14:21:35 -0700 (Fri, 21 Aug 2009) | 1 line
  
  [maven-release-plugin] prepare release hudson-
........
  r21011 | kohsuke | 2009-08-21 14:22:00 -0700 (Fri, 21 Aug 2009) | 1 line
  
  [maven-release-plugin] prepare for next development iteration
........
  r21015 | kohsuke | 2009-08-21 16:00:17 -0700 (Fri, 21 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@21095 71c3de6d-444a-0410-be80-ed276b4c234a
2009-08-26 15:13:55 +00:00
kohsuke 2449716d30 added env check
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21094 71c3de6d-444a-0410-be80-ed276b4c234a
2009-08-26 14:44:11 +00:00
kohsuke 0b89c4742d bug fix.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21089 71c3de6d-444a-0410-be80-ed276b4c234a
2009-08-26 01:21:50 +00:00
kohsuke bcf1e1c6ed these are now instanciable.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21088 71c3de6d-444a-0410-be80-ed276b4c234a
2009-08-26 01:20:53 +00:00
kohsuke 734abf2a82 Labels for nodes are shown in a tag cloud style. Compared to the patch, the following changes are made:
- fixed a divide-by-0 problem if every weight is 0.
- Stapler prefers a typed data structure over bare Map, so TagCloudFactory is changed to TagCloud.
- There are different tag cloud rendering for the same model, so the weight assignment is pushed outside the item. For example, labels can be made into a tag cloud via # of slave / # of tied jobs, etc.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21086 71c3de6d-444a-0410-be80-ed276b4c234a
2009-08-26 01:09:35 +00:00
redsolo ab9ad5192b Changed debian's init.d script so it sets the HOME env variable correctly.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21075 71c3de6d-444a-0410-be80-ed276b4c234a
2009-08-25 13:04:06 +00:00
pamdirac 24605c3d43 Fixed cli help message
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21074 71c3de6d-444a-0410-be80-ed276b4c234a
2009-08-25 12:40:00 +00:00
lifeless de275c23ae Improve the English help text for the node label field to make it clear how to separate multiple labels. This does not fix the issue fully as it needs translating still. HUDSON-3521.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21067 71c3de6d-444a-0410-be80-ed276b4c234a
2009-08-25 06:40:15 +00:00
lifeless e55b9fe0ce Improve the help text for tied nodes in the job configuration page to document
that jobs can be tied to labels. FIXED HUDSON-2139


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21066 71c3de6d-444a-0410-be80-ed276b4c234a
2009-08-25 06:12:56 +00:00
mindless cd6a71af00 [FIXED HUDSON-4301] Creation of symlinks failed (or created in wrong location) since 1.320.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21046 71c3de6d-444a-0410-be80-ed276b4c234a
2009-08-24 21:36:34 +00:00
mindless d7ae2279ad [FIXED HUDSON-4272] don't add duplicate RootActions when reloading config from disk
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21030 71c3de6d-444a-0410-be80-ed276b4c234a
2009-08-23 16:51:10 +00:00