Commit Graph
11799 Commits
Author SHA1 Message Date
kohsuke 2b9f3b2d71 followed a convention
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15661 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-24 18:48:14 +00:00
kohsuke 2db12ebdd9 FileSystemProvisioner is updated to support automatic discovery.
This class isn't officially committed, so in this case I just removed LIST altogether.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15660 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-24 18:47:28 +00:00
kohsuke b0d4a44183 RetentionStrategy is updated to support automatic discovery
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15659 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-24 18:45:42 +00:00
kohsuke 4d57c31dc3 ParameterDefinition is updated to support automatic discovery
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15658 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-24 18:39:58 +00:00
kohsuke 62588b028d ListViewColumn is updated to support auto registration.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15657 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-24 18:35:08 +00:00
kohsuke af21daf8d9 added Hudson.getDescriptorByType() to simplify the retrieval of the descriptor instance. Fixed test cases.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15656 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-24 18:32:42 +00:00
kohsuke 5e5bc93b78 doc improvement
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15655 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-24 18:18:28 +00:00
kohsuke 35cc0e5b33 added another compatibility support code, and used that to support auto-registration in UserNameResolver
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15654 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-24 18:01:56 +00:00
kohsuke 1b766a0861 RepositoryBrowser is updated to support auto registration.
Refactored the ConcurrentHashMap double-if putIfAbsent idiom into the Memoizer class.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15653 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-24 17:47:32 +00:00
kohsuke 50d0fca828 IntelliJ complains if @Override is for interfaces
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15652 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-24 17:15:46 +00:00
draco2k8 3e0738d57e [FIXED HUDSON-3124] Better SVN polling support - Trigger a build for changes in certain regions
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15650 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-24 14:42:50 +00:00
kohsuke a6cf7e129b Java5 optimization
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15623 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-24 05:23:27 +00:00
kohsuke e73dd67934 fixed a compilation error
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15622 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-24 05:23:18 +00:00
kohsuke b9658d5a55 now that ExtensionList is a List, this wasn't necessary after all. Reverting the previous change
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15621 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-24 05:23:02 +00:00
kohsuke bd8c2a1cad Converted ComputerLauncher to support auto-registration.
ExtensionList is modified to implement List (with the add() method for legacy support) for simplification.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15620 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-24 05:18:26 +00:00
kohsuke 66519f5eba formatting changes
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15619 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-24 05:11:12 +00:00
kohsuke b4f3a13ebc converted JobProperty to support auto-registration.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15618 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-24 05:09:02 +00:00
kohsuke cf25766b92 converted Builder to support auto-registration.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15617 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-24 04:58:40 +00:00
kohsuke 23e2dcbe06 bug fix
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15616 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-24 01:04:59 +00:00
kohsuke b5e218836e updated to support the auto discovery
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15615 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-24 00:57:24 +00:00
kohsuke 00dfee4963 removed Descriptor.ALL. According to grep this isn't used by any of the official plugins, and because of the type signature, we cannot make this work in the new scheme.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15614 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-24 00:56:29 +00:00
kohsuke a75a52db7b this has been here for more than 2 years now. Time to remove a warning.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15613 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-24 00:44:12 +00:00
kohsuke abd2950e10 bug fix
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15612 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-24 00:42:51 +00:00
kohsuke 836ca42fa4 formatting change
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15611 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-24 00:35:39 +00:00
kohsuke a451ce59c1 converted existing MavenReporters into the auto-discovery based mechanism.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15610 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-24 00:35:14 +00:00
kohsuke 4923cd30e1 converted existing AuthorizationStrategy implementations for auto-discovery
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15608 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-24 00:14:52 +00:00
kohsuke 6852bba554 Existing SecurityRealm implementations are converted for auto-discovery.
I also used the active directory plugin to make sure that the binary compatibility with old plugins are working

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15607 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-24 00:05:47 +00:00
kohsuke e76b940561 bug fix in the load order handling.
Until all the plugins are loaded, we cannot start the discovery process, so if the list view is requested before that, just return the list of legacy instances as an approximation.

The current plugin code shouldn't expect the DescriptorList to be fully populated until all the plugins are loaded anyway, so this partial visibility isn't any different from what they currently see.

OTOH, this prevents NPE in ExtensionFinder.Sezpoz when it tries to get the uber classloader.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15606 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-24 00:03:48 +00:00
kohsuke e551e69284 avoid unnecessary eager loading
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15605 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-24 00:01:59 +00:00
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
mindless f5fe9527d2 Fix autocomplete if any of the values have a quote character
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15596 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-23 17:18:25 +00:00
mindless 173e66032d [FIXED HUDSON-2905] Show assigned-node section of config page whenever
assignedLabel!=null, so job can be unassigned from a node even after
last slave node has been deleted.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15595 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-23 16:54:12 +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 8adda53dc6 forgot to release this
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15586 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-23 02:48:32 +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
sogabe b87f24674a Updated japanese localization to r15572
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15573 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-23 00:54:26 +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