Commit Graph
5182 Commits
Author SHA1 Message Date
kohsuke 6d492940d9 Cache LDAP attributes to go easy on memory footprint. Where I saw this problem, each LDAP BasicAttributes is about 30K big, and a programmatic client logged in 7000 times, resulting in 140MB of memory consumption just by LDAP attributes.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@34211 71c3de6d-444a-0410-be80-ed276b4c234a
2010-08-30 18:34:28 +00:00
sogabe 8666a5aec3 Removed unused import.(PMD warnings)
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@34182 71c3de6d-444a-0410-be80-ed276b4c234a
2010-08-27 23:50:00 +00:00
mindless 99aaa67bec [FIXED HUDSON-6628] There is some code duplication in main() methods between
CLICommand and the anonymous CLICommand subclass in CLIRegisterer.. the latter
was missing the loadStoredAuthentication call which enables CLI login command.
CLI login now works for CLI commands defined via @CLIMethod annotation.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@34178 71c3de6d-444a-0410-be80-ed276b4c234a
2010-08-27 20:34:29 +00:00
sogabe becb2768bd Removed unused import.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@34177 71c3de6d-444a-0410-be80-ed276b4c234a
2010-08-27 18:30:35 +00:00
rseguy e1c25beacc [FIXED HUDSON-1871]
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@34172 71c3de6d-444a-0410-be80-ed276b4c234a
2010-08-27 13:36:27 +00:00
kohsuke 33f6eb502f interrupt is used as a suicide signal for executors, so go back to the top if that was why we were interrupted. Unlikely race condition, but still...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@34159 71c3de6d-444a-0410-be80-ed276b4c234a
2010-08-26 23:39:17 +00:00
dty 3f5dec66c2 Fix version number in a @since.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@34158 71c3de6d-444a-0410-be80-ed276b4c234a
2010-08-26 22:58:02 +00:00
dty d0c3ebec93 Allow transient actions to be passed through the trigger to the job to be
executed.

This will be used by the post-commit hook in the Subversion plugin to specify
the revision to check out at.



git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@34157 71c3de6d-444a-0410-be80-ed276b4c234a
2010-08-26 22:38:54 +00:00
kohsuke 9d74a9005f avoid NPE
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@34154 71c3de6d-444a-0410-be80-ed276b4c234a
2010-08-26 19:02:39 +00:00
kohsuke ba15881681 added a hook to do some computation before exposing build variables
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@34124 71c3de6d-444a-0410-be80-ed276b4c234a
2010-08-26 02:19:12 +00:00
kohsuke 7320ce252f Merged revisions 34000-34001,34005,34007,34038 via svnmerge from
https://www.dev.java.net/svn/hudson/branches/rc

........
  r34000 | kohsuke | 2010-08-20 14:16:13 -0700 (Fri, 20 Aug 2010) | 2 lines
  
  [FIXED HUDSON-7216]
  Fixed a 1.372 regression in handling whitespace and other characters in label names.
........
  r34001 | kohsuke | 2010-08-20 14:26:55 -0700 (Fri, 20 Aug 2010) | 1 line
  
  foo*bar parses just like foo-bar parses OK.
........
  r34005 | kohsuke | 2010-08-20 20:08:26 -0700 (Fri, 20 Aug 2010) | 1 line
  
  [maven-release-plugin] prepare release hudson-1_373
........
  r34007 | kohsuke | 2010-08-20 20:08:40 -0700 (Fri, 20 Aug 2010) | 1 line
  
  [maven-release-plugin] prepare for next development iteration
........
  r34038 | kohsuke | 2010-08-23 11:02:55 -0700 (Mon, 23 Aug 2010) | 1 line
  
  updated changelog as a part of the release
........


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@34118 71c3de6d-444a-0410-be80-ed276b4c234a
2010-08-26 01:50:31 +00:00
kohsuke a7b3979989 doc improvement.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@34082 71c3de6d-444a-0410-be80-ed276b4c234a
2010-08-25 00:30:07 +00:00
kohsuke 5c6b2b000f doc improvement.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@34081 71c3de6d-444a-0410-be80-ed276b4c234a
2010-08-25 00:28:37 +00:00
kohsuke ef7d99c9a0 doc improvement.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@34080 71c3de6d-444a-0410-be80-ed276b4c234a
2010-08-25 00:16:19 +00:00
kohsuke 67547f4170 have some initial default value to avoid NPE in onModified().
This is a stop-gap fix to a bigger problem of XStream not persisting the owner of a persisted list.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@34079 71c3de6d-444a-0410-be80-ed276b4c234a
2010-08-24 23:04:39 +00:00
kohsuke 8fcf13585f rebuild operations on DescribableList should fire onModified.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@34078 71c3de6d-444a-0410-be80-ed276b4c234a
2010-08-24 22:06:01 +00:00
kohsuke 9ec00e3afc first build and last build were swapped.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@34057 71c3de6d-444a-0410-be80-ed276b4c234a
2010-08-23 21:26:40 +00:00
kohsuke ba95f0cd57 do the equivalent of intern-ing to reduce string overhead.
Since adjacent Fingerprints tend to be similar, unifying string instances between them should cheaply improve the memory footprint.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@34050 71c3de6d-444a-0410-be80-ed276b4c234a
2010-08-23 19:05:51 +00:00
kohsuke ab8f7a4fc5 use more memory-efficient in-memory data structure.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@34049 71c3de6d-444a-0410-be80-ed276b4c234a
2010-08-23 19:05:34 +00:00
kohsuke 65644d3b62 added support for marshalling Google collection ImmutableMap
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@34048 71c3de6d-444a-0410-be80-ed276b4c234a
2010-08-23 19:05:29 +00:00
kohsuke 34454d0588 added a means to simulate the OOME situation.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@34046 71c3de6d-444a-0410-be80-ed276b4c234a
2010-08-23 19:05:14 +00:00
kohsuke db05699410 expose unpinning to the web UI.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@34045 71c3de6d-444a-0410-be80-ed276b4c234a
2010-08-23 19:05:09 +00:00
kohsuke 21ad12ffc0 defined a system property to remove MAVEN_OPTS from Maven builds forked inside.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@34044 71c3de6d-444a-0410-be80-ed276b4c234a
2010-08-23 19:05:03 +00:00
kohsuke 457315f40f Using two type parameters was causing too much problem, as illustrated in the following. Falling back to one type argument version, which is much easier to handle:
------------------
import java.util.ArrayList;

class Job<J extends Job<J,R>, R extends Run<J,R>> {}
class Run<J extends Job<J,R>, R extends Run<J,R>> {}

class Job2 extends Job<Job2,Run2> {}
class Run2 extends Run<Job2,Run2> {}

class RunList<J extends Job<J,R>, R extends Run<J,R>> extends ArrayList<R> {}

class Foo {
    // how do I make this work?
    public void test1(RunList<Job,Run> why) {}

    // this works
    public void test2(RunList<Job2,Run2> why) {}
}

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@34043 71c3de6d-444a-0410-be80-ed276b4c234a
2010-08-23 19:04:56 +00:00
kohsuke be28fe6d81 Timeline view is available in more places.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@34042 71c3de6d-444a-0410-be80-ed276b4c234a
2010-08-23 19:04:51 +00:00
kohsuke 3c99238382 use RunList in Job.getBuilds() as well, since it's making a copy.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@34041 71c3de6d-444a-0410-be80-ed276b4c234a
2010-08-23 19:04:43 +00:00
kohsuke c9ab4c0473 calling updateTransientActions() from the constructor means we end up calling the overrided methods in subtypes before subtype constructor kicks in. Probably not a good idea.
Instead, opted for a post-constructor hook.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@34040 71c3de6d-444a-0410-be80-ed276b4c234a
2010-08-23 18:33:23 +00:00
kohsuke a7c9760e82 fixed a test regression
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@34030 71c3de6d-444a-0410-be80-ed276b4c234a
2010-08-23 17:16:08 +00:00
StevenGBrown 74d55f57d7 Added @since Javadoc tags to the ConsoleNote.removeNotes methods.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@34011 71c3de6d-444a-0410-be80-ed276b4c234a
2010-08-21 15:28:27 +00:00
StevenGBrown ac64bcb8d9 [FIXED HUDSON-7112] Plugins can now transform the console output.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@34008 71c3de6d-444a-0410-be80-ed276b4c234a
2010-08-21 07:37:26 +00:00
km b228c24db5 [FIXED-HUDSON-7162]
Hudson ignores Maven pom.xml path when it is specified as absolute path.
Provided utility methods for checking whether a path is absolute and
absolutizing a given path (w.r.t. a base).
Provided a unit test case for this scenario (@Bug 7261).



git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@34004 71c3de6d-444a-0410-be80-ed276b4c234a
2010-08-21 02:13:15 +00:00
kohsuke dfdcecccb1 Auto-completion can be now easily added to text boxes by plugins.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@34002 71c3de6d-444a-0410-be80-ed276b4c234a
2010-08-20 23:04:33 +00:00
kohsuke 1c78940275 solicit initial contributions, especially from TransientProjectActionFactory
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@33991 71c3de6d-444a-0410-be80-ed276b4c234a
2010-08-20 00:43:54 +00:00
mindless 8614d5e954 [HUDSON-7204] fix for defining empty properties for ant build on windows.
also added info about parameter references and double quotes in help file.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@33988 71c3de6d-444a-0410-be80-ed276b4c234a
2010-08-19 23:32:20 +00:00
sogabe cae02742e6 Added Japanese localization for Matrix project.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@33942 71c3de6d-444a-0410-be80-ed276b4c234a
2010-08-18 12:02:49 +00:00
kohsuke b17951d4cf [FIXED HUDSON-7026] applied the patch to fix the regular expression.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@33897 71c3de6d-444a-0410-be80-ed276b4c234a
2010-08-17 01:48:43 +00:00
mindless 189a1f31f1 [FIXED HUDSON-7211] fix Hudson build on case-insensitive filesystems.
hudson/model/label/*.class conflicted with hudson/model/Label/*.jelly,
so renamed new package to hudson.model.labels


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@33875 71c3de6d-444a-0410-be80-ed276b4c234a
2010-08-16 04:35:30 +00:00
kohsuke e1cf51440e Merged revisions 33821,33823,33825,33829 via svnmerge from
https://www.dev.java.net/svn/hudson/branches/rc

........
  r33821 | kohsuke | 2010-08-13 20:05:10 -0700 (Fri, 13 Aug 2010) | 1 line
  
  label serialization should include all the subtypes.
........
  r33823 | kohsuke | 2010-08-13 21:03:34 -0700 (Fri, 13 Aug 2010) | 1 line
  
  [maven-release-plugin] prepare release hudson-1_372
........
  r33825 | kohsuke | 2010-08-13 21:03:45 -0700 (Fri, 13 Aug 2010) | 1 line
  
  [maven-release-plugin] prepare for next development iteration
........
  r33829 | kohsuke | 2010-08-13 22:04:49 -0700 (Fri, 13 Aug 2010) | 1 line
  
  updated changelog as a part of the release
........


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@33863 71c3de6d-444a-0410-be80-ed276b4c234a
2010-08-15 16:30:18 +00:00
kohsuke 64db15c45c [FIXED HUDSON-4158]
JUnit report archiving now captures stdout of tests run in Surefire.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@33862 71c3de6d-444a-0410-be80-ed276b4c234a
2010-08-15 16:28:53 +00:00
kohsuke 45d413c412 better signature
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@33861 71c3de6d-444a-0410-be80-ed276b4c234a
2010-08-15 15:43:11 +00:00
kohsuke dc0ceb5cb4 documenting how to migrate.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@33859 71c3de6d-444a-0410-be80-ed276b4c234a
2010-08-14 22:32:18 +00:00
kohsuke 6dbef5cbb4 handle AbortException gracefully without spewing a stack trace.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@33855 71c3de6d-444a-0410-be80-ed276b4c234a
2010-08-14 17:54:38 +00:00
kohsuke 804e200fc3 bug fix
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@33854 71c3de6d-444a-0410-be80-ed276b4c234a
2010-08-14 17:54:25 +00:00
kohsuke bcf3a538b6 CommandInterpreter is made more reusable.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@33853 71c3de6d-444a-0410-be80-ed276b4c234a
2010-08-14 17:54:17 +00:00
kohsuke 0704329d44 one property type, one instance, just like node properties and job properties.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@33852 71c3de6d-444a-0410-be80-ed276b4c234a
2010-08-14 17:54:08 +00:00
kohsuke 46e185d3fb bug fix in the UI hookup
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@33851 71c3de6d-444a-0410-be80-ed276b4c234a
2010-08-14 17:53:55 +00:00
kohsuke e7a2a53afe allowed LabelAtomProperty to contribute actions to LabelAtom, and added a config link.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@33850 71c3de6d-444a-0410-be80-ed276b4c234a
2010-08-14 17:53:40 +00:00
kohsuke b59ac4698b added a new extension point LabelAtomProperty to allow plugins to add semantics to labels
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@33849 71c3de6d-444a-0410-be80-ed276b4c234a
2010-08-14 17:53:24 +00:00
kohsuke 831a6e8b11 allow all Descriptors with global.jelly to participate in the global configuration UI.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@33837 71c3de6d-444a-0410-be80-ed276b4c234a
2010-08-14 07:58:33 +00:00
kohsuke 1cc19f0e0d add NODE_LABELS environment variables
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@33836 71c3de6d-444a-0410-be80-ed276b4c234a
2010-08-14 07:57:09 +00:00