Commit Graph
5182 Commits
Author SHA1 Message Date
kohsuke f592d33a7e converting several DescriptorList in a new form
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15604 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-23 23:38:08 +00:00
kohsuke 2a1798e08f promoted DescriptorSubList to DescriptorExtensionList so that we can have Descriptor-specific methods.
Added a test case

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15602 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-23 23:13:54 +00:00
kohsuke d4c6a4b06c added an auto-discovery mechanism for extension points (and most notably Descriptors.)
- extensions are now stored in ExtensionList.
- discovery is extensible, but by default we use Sezpoz for annotation-based injection. This requires JDK6 for build.
- a care has been taken to preserve backward compatibility. DescriptorList and manually adding to it continues to work.
- AdministrativeMonitor is converted to use the new approach entirely, as a guinea pig of this feature.
- Descriptors for View is partially switched to this new approach, where some classes register automatically while others do manually. This tests the compatibility aspect of this feature.

A pluggable discovery is an attempt to embrace Plexus integration work, although for that to really work we need more coding.

Next stop, more tests.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15601 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-23 21:54:22 +00:00
kohsuke 836b436f15 adding a convenience constructor that infers the target type from the outer class.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15598 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-23 19:53:37 +00:00
sogabe ed069d1cc8 Updated Japanese localization to the latest and I18N.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15594 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-23 12:32:30 +00:00
jglick 277539081b [FIXED HUDSON-2417] Taking stability into account when deciding which builds & artifacts to keep.
Previously, Hudson only tried to keep successful builds, meaning it would discard the last stable build
if there was a long run of unstable builds. This made .../lastStableBuild/... permalinks useless.
Artifact archiver logic with "latest only" also improved more generally:
1. Discards old artifacts at the start of the build. It might as well save the disk space sooner rather than later.
2. Rather than deleting all old artifacts prior to some point, now keeps the latest representatives
   of different stability classes of build: always keeps last stable if available, and also last successful if newer,
   and (just in case) also the last failed if that is newer. Formerly it behaved oddly: during a run of failed builds,
   all of their artifacts would be kept, though these are unlikely to be useful.
Also introducing tests for all this functionality, which does not seem to have been tested before.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15587 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-23 04:57:45 +00:00
kohsuke 0f9b5f626a Merged revisions 15420-15422,15540-15541,15556,15559-15560,15577 via svnmerge from
https://www.dev.java.net/svn/hudson/branches/managed-windows-slave

........
  r15420 | kohsuke | 2009-02-17 22:54:43 -0800 (Tue, 17 Feb 2009) | 1 line
  
  added a work in progress
........
  r15421 | kohsuke | 2009-02-17 23:01:47 -0800 (Tue, 17 Feb 2009) | 1 line
  
  added copyright
........
  r15422 | kohsuke | 2009-02-17 23:07:50 -0800 (Tue, 17 Feb 2009) | 1 line
  
  forgot to copy this
........
  r15540 | kohsuke | 2009-02-21 21:00:29 -0800 (Sat, 21 Feb 2009) | 1 line
  
  moving WMI support into another library, and making more progress
........
  r15541 | kohsuke | 2009-02-21 22:19:43 -0800 (Sat, 21 Feb 2009) | 3 lines
  
  making more progress.
  
  We need an UI to reinstall a service
........
  r15556 | kohsuke | 2009-02-22 11:15:12 -0800 (Sun, 22 Feb 2009) | 1 line
  
  allows null
........
  r15559 | kohsuke | 2009-02-22 11:29:08 -0800 (Sun, 22 Feb 2009) | 1 line
  
  added a new mode of launcher that accepts one TCP/IP connection and use that for communication
........
  r15560 | kohsuke | 2009-02-22 11:39:52 -0800 (Sun, 22 Feb 2009) | 1 line
  
  more bug fixes and stabilization
........
  r15577 | kohsuke | 2009-02-22 18:15:51 -0800 (Sun, 22 Feb 2009) | 2 lines
  
  improved the form field databinding by allowing @field to be on <f:entry>.
  This enables the convention-over-configuration for pointing to the help file.
........


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15579 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-23 02:31:18 +00:00
mindless 28b3861603 [FIXED HUDSON-3054] refactor method returning html into jelly files
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15572 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-22 23:12:31 +00:00
jglick 6ea426678b [HUDSON-3014] Trying to correct CCE from huybrechts' r15534.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15555 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-22 19:03:32 +00:00
sogabe 9d23a7d6ae fixed bypassing cause.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15552 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-22 14:41:37 +00:00
sogabe e59283e65c added RemoteCause for triggering build remotely.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15542 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-22 06:59:17 +00:00
huybrechts 8647389b3c added a test for SVN location with a variable
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15538 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-21 22:29:43 +00:00
huybrechts 2d107a62f9 [HUDSON-3014] case-insensitive sorting with Collator (thanks to Jesse Glick)
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15534 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-21 21:02:41 +00:00
huybrechts abef8b5274 [FIXED HUDSON-3014] case-insensitive sorting for node names
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15513 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-21 16:56:51 +00:00
huybrechts e73b940f7b Support for adding actions when scheduling a build. Required for scheduling builds with parameters
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15512 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-21 16:13:15 +00:00
huybrechts 87eb6367cd [HUDSON-2918] node properties and environment variables
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15502 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-20 22:12:06 +00:00
kohsuke 481fd5ab2e [FIXED HUDSON-2394] Improved error handling when Maven fails to start correctly in the m2 project type.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15501 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-20 20:28:57 +00:00
kohsuke f31ad9c1eb Build parameter settings are lost when you save the configuration. Regression since 1.284.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15458 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-19 19:19:37 +00:00
mindless 729e54c6c7 [FIXED HUDSON-3076] Close streams in a finally block in FilePath.copyTo,
to avoid leaving open file handles (just as was done for FilePath.read in r15388)


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15449 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-19 05:25:21 +00:00
mindless d2eb155e57 Store axes used for matrix build in the MatrixBuild, so viewing build history will
show matrix for that build, instead of axes for the project which may have changed.
Also only tooltip attribute on status balls (as done elsewhere in Hudson),
rather than both tooltip and title (firefox actually shows both).


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15447 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-19 00:49:40 +00:00
kohsuke 607f8506c4 Always use some timeout value for Subversion HTTP access to avoid infinite hang in the read.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15443 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-18 23:53:57 +00:00
sogabe 61b2f1511f Fixed Javadoc that ListViewColumn uses column.jelly as view , not cell.jelly (See http://d.hatena.ne.jp/ssogabe/20090217/1234881360)
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15441 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-18 22:26:23 +00:00
kohsuke fbf77666d4 Don't let containers persist authentication information, which may not deserialize correctly.
(<a href="http://www.nabble.com/ActiveDirectory-Plugin%3A-ClassNotFoundException-while-loading--persisted-sessions%3A-td22085140.html">report</a>)


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15437 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-18 19:23:00 +00:00
kohsuke 9d10e07cf4 doc improvement and changed to notifyAll, to handle multiple thread block situation correctly
Note that this wasn't causing an issue in our Queue class, because it's used in an environment where at most one thread blocks.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15434 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-18 18:19:02 +00:00
kohsuke 1752b39bb1 [FIXED HUDSON-3044] Recover from missing libzfs. Will be in 1.285.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15433 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-18 18:12:54 +00:00
draco2k8 e106880aba [FIXED HUDSON-848] Added ability for CVS polling to ignore commits of certain files as unimportant to the build process succeeding (e.g. HTML files) - thus a build would not be triggered.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15426 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-18 14:21:31 +00:00
kohsuke 13c7792368 improving persistence signature
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15418 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-18 06:05:44 +00:00
kohsuke fdf669a822 NPE fix
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15410 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-18 04:37:11 +00:00
sogabe b2acc69761 reverted to r15337.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15402 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-17 22:57:58 +00:00
mindless e1c2551566 [FIXED HUDSON-3054] Add Cause.getHTMLDescription (defaults to same as ShortDescription)
and use this so build page shows links to user pages or upstream projects as appropriate.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15401 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-17 22:52:38 +00:00
kohsuke 73def41241 bug fix when handling old data.
if a new hash is returned for getHashedPassword(), the config dialog won't work

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15392 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-17 20:05:12 +00:00
kohsuke 39da96f605 made more robust even when the file doesn't exist: http://www.nabble.com/stuck-on-InputStream-from-FilePath.read%28%29-td22053991.html
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15388 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-17 19:06:35 +00:00
mindless d0868cd1ae [FIXED HUDSON-2671] lock the SCMTrigger.getLock() in checkout() so polling won't occur
while the checkout/update is in progress.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15377 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-16 21:56:26 +00:00
mindless 543fe070a6 [FIXED HUDSON-3049] avoid NPE in DEFAULT ProcessTreeKiller
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15369 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-16 03:03:36 +00:00
huybrechts 354bf47126 Support for databinding on descriptor list
Merging changes made by Kohsuke in nodeproperties branch

Revision: 14927
Author: kohsuke
Date: 20:44:52, vrijdag 30 januari 2009
Message:
added support for form databinding
----
Modified : /branches/nodeproperties/main/core/src/main/resources/lib/form/descriptorList.jelly

Revision: 14925
Author: kohsuke
Date: 20:41:35, vrijdag 30 januari 2009
Message:
handle overlapping nested <rowSet> correctly.
----
Modified : /branches/nodeproperties/main/war/resources/scripts/hudson-behavior.js

Revision: 14924
Author: kohsuke
Date: 20:33:48, vrijdag 30 januari 2009
Message:
added another convenience method.
----
Modified : /branches/nodeproperties/main/core/src/main/java/hudson/util/DescribableList.java

Revision: 14918
Author: kohsuke
Date: 19:02:44, vrijdag 30 januari 2009
Message:
added optional @name to create an JSON object
----
Modified : /branches/nodeproperties/main/core/src/main/resources/lib/form/section.jelly

Revision: 14917
Author: kohsuke
Date: 19:02:30, vrijdag 30 januari 2009
Message:
added documentation and supported graceful no-op.
----
Modified : /branches/nodeproperties/main/core/src/main/resources/lib/form/rowSet.jelly

Revision: 14915
Author: kohsuke
Date: 18:44:56, vrijdag 30 januari 2009
Message:
I hate cursor stealing
----
Modified : /branches/nodeproperties/main/core/src/main/resources/lib/form/descriptorList.jelly

Revision: 14914
Author: kohsuke
Date: 18:44:04, vrijdag 30 januari 2009
Message:
title is not mandatory
----
Modified : /branches/nodeproperties/main/core/src/main/resources/lib/form/descriptorList.jelly




git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15368 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-15 23:19:19 +00:00
kohsuke 18591f0288 simplified a bit
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15366 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-15 16:02:24 +00:00
kohsuke 225dc9cc47 Tweaking the convention a bit to move all help files in the same folder.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15364 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-15 15:32:17 +00:00
huybrechts d300ff8490 [HUDSON-2551] support for reading compressed build logs
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15363 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-15 14:33:25 +00:00
kohsuke b1a7477b2e Improving convention-over-configuration for help files, and in particular I made it more seamless to switch between Jelly vs static HTML in help files.
I experimented with dynamically composed help page in slave ComputerLauncher, to accomodate for the extensible list. This pattern needs to be made into a tag.

Finally, picked up a new version of stapler to implement this.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15354 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-15 05:36:40 +00:00
kohsuke 70e23eebd4 added logging
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15352 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-14 18:31:12 +00:00
kohsuke b9f7d5a480 implementing a ZFS based FileSystemProvisioner as a test to see if the abstraction works.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15351 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-14 18:26:19 +00:00
kohsuke b6c0519b66 compilation fix
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15350 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-14 18:24:11 +00:00
kohsuke d249924b89 removed unused parameter
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15349 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-14 18:22:15 +00:00
kohsuke 76ed226f7d - allowing InterruptedException in more places.
- hooking up FileSystemProvisioner


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15348 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-14 18:21:44 +00:00
kohsuke b49cc1e05a - allowing InterruptedException in more places.
- hooking up FileSystemProvisioner


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15347 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-14 18:20:32 +00:00
kohsuke 54b9f6bb86 Moving ZFS related code into the solaris package, in anticipation of more code in this area.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15346 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-14 17:44:44 +00:00
kohsuke d741f23d33 - allowing InterruptedException in more places.
- hooking up FileSystemProvisioner


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15345 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-14 17:37:05 +00:00
mindless 6e8b814140 [FIXED HUDSON-414] copy AbstractProject changes in r15338/15339 to prevent multiple
builds in same second (would use same build directory)


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15344 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-14 16:17:04 +00:00
mindless 4a93e24100 doc fix
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15343 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-14 15:42:38 +00:00
mindless 3d75ed2c76 [FIXED HUDSON-3043] login completely broken for those upgrading to 1.283,
since old password field was not descrambled before encoding.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15342 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-14 15:41:45 +00:00