Commit Graph
4189 Commits
Author SHA1 Message Date
mindless b88fa252ee include plugin name in "is disabled" log message
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@24560 71c3de6d-444a-0410-be80-ed276b4c234a
2009-12-11 05:19:36 +00:00
mindless f62814d91a ensure we init before plugins, in case plugins cause any logging
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@24559 71c3de6d-444a-0410-be80-ed276b4c234a
2009-12-11 04:09:07 +00:00
kohsuke 64f1d19017 I was counting on the new spell checker of IntelliJ IDEA 9.0, but it still doesn't beat Jesse.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@24537 71c3de6d-444a-0410-be80-ed276b4c234a
2009-12-09 23:51:26 +00:00
kohsuke 6b91411350 defined a setter for the quiet period.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@24536 71c3de6d-444a-0410-be80-ed276b4c234a
2009-12-09 23:37:10 +00:00
kohsuke 6fa3acf8a9 [HUDSON-4873] follow up change to rev.23980. Since flyweight support ignores the node availability, it bypasses the buildable state completely, which in turn means it now ignores other checks that buildable state did, namely to see if Hudson was quietting down.
Modified code so that FlyweightTask doesn't get started if Hudson is quieting down.

I feel like Queue is getting too complex.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@24492 71c3de6d-444a-0410-be80-ed276b4c234a
2009-12-09 02:09:04 +00:00
kohsuke c154d431f0 [HUDSON-5048] Fixed the multi-classloader support in the remoting code. I confirmed that this fixes HUDSON-4993 without modifying the warnings/analysis-core plugin.
I'm letting Hudson run the whole test suite to see if there's any regression caused by this.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@24490 71c3de6d-444a-0410-be80-ed276b4c234a
2009-12-09 01:45:57 +00:00
kohsuke 06401132b3 Auto installer for Maven couldn't be configured after the fact.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@24478 71c3de6d-444a-0410-be80-ed276b4c234a
2009-12-08 19:34:10 +00:00
kohsuke af4d1c373c Fixed <tt>OutOfMemoryError</tt> in JNLP slaves that are running for too long.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@24468 71c3de6d-444a-0410-be80-ed276b4c234a
2009-12-08 00:31:24 +00:00
kohsuke 26f290b5b7 fixed a compilation problem. I think this reads better than a two-arg "isNewerThan"
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@24466 71c3de6d-444a-0410-be80-ed276b4c234a
2009-12-08 00:09:45 +00:00
kohsuke a19306af47 added a new tag to bind a set of enum constants to a series of checkboxes
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@24463 71c3de6d-444a-0410-be80-ed276b4c234a
2009-12-07 23:25:08 +00:00
abayer ad172c7662 [HUDSON-4983] Change to automatically install plugins when they're listed in the dependencies section (except for maven-plugin) - still needs more testing
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@24461 71c3de6d-444a-0410-be80-ed276b4c234a
2009-12-07 20:32:53 +00:00
mindless 5bd9d53592 [HUDSON-5023] be more verbose.. write full exception detail in both job console and java Logger,
instead of just writing just e.getMessage() to Logger.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@24459 71c3de6d-444a-0410-be80-ed276b4c234a
2009-12-07 19:09:52 +00:00
abayer 162f1b1912 [FIXED HUDSON-5023] Subsequent publishers should still run even if an earlier publisher throws an exception
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@24433 71c3de6d-444a-0410-be80-ed276b4c234a
2009-12-06 18:39:34 +00:00
mindless a13016c2c2 [FIXED HUDSON-4976] Add per-directory sorting for artifact list and tree display.
Also, always show a link to directory browser (as "download as zip" is accessible here)
instead of only when there are 40+ artifacts.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@24413 71c3de6d-444a-0410-be80-ed276b4c234a
2009-12-05 17:42:54 +00:00
kohsuke 0766f1f5f1 modified to use the new convenience method
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@24408 71c3de6d-444a-0410-be80-ed276b4c234a
2009-12-05 14:17:30 +00:00
kohsuke 449aba7570 added a convenience method.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@24407 71c3de6d-444a-0410-be80-ed276b4c234a
2009-12-05 14:15:36 +00:00
kohsuke b4deb9e5cd simplified slightly
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@24388 71c3de6d-444a-0410-be80-ed276b4c234a
2009-12-04 00:41:28 +00:00
kohsuke 6393ed3966 added firing method
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@24386 71c3de6d-444a-0410-be80-ed276b4c234a
2009-12-04 00:38:32 +00:00
kohsuke 52066f6440 added symlink resolution code
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@24373 71c3de6d-444a-0410-be80-ed276b4c234a
2009-12-03 14:15:46 +00:00
kohsuke 213ae6991d formatting change
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@24338 71c3de6d-444a-0410-be80-ed276b4c234a
2009-12-03 00:01:15 +00:00
kohsuke 5e710e05c6 fingerprint is configured if there's a Fingerprinter, so the default configuration should do.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@24316 71c3de6d-444a-0410-be80-ed276b4c234a
2009-12-02 13:48:39 +00:00
kohsuke bfd1ea3bee simplified a bit
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@24315 71c3de6d-444a-0410-be80-ed276b4c234a
2009-12-02 13:47:39 +00:00
mindless a662c06541 Group available plugins by category in PluginManager, using data from wiki.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@24292 71c3de6d-444a-0410-be80-ed276b4c234a
2009-12-01 20:28:37 +00:00
kohsuke d69a5351f6 enhancing IO convenience code.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@24281 71c3de6d-444a-0410-be80-ed276b4c234a
2009-12-01 14:37:57 +00:00
kohsuke 8f8e4c3097 I reinvented the wheel without realizing I had the Service class already. Consolidating.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@24279 71c3de6d-444a-0410-be80-ed276b4c234a
2009-12-01 14:22:22 +00:00
huybrechts ef74dc027c [FIXED HUDSON-4488] added job name, run number to exported api for Run parameter value
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@24217 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-29 20:31:34 +00:00
huybrechts 2deb95e6a3 [FIXED HUDSON-4925] optional filtering by view for the build executors status and build queue
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@24184 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-28 20:54:10 +00:00
kohsuke 013758b2f5 [FIXED HUDSON-936] in 1.337 by moving out the start method from Executor.
Since not many code will own Executors, for now I didn't introduce any wrapper to hide the start method invocation.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@24159 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-28 15:19:21 +00:00
kohsuke 53b8f8a518 [HUDSON-936] Applied the patch from pcc.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@24149 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-28 00:56:25 +00:00
kohsuke bd775698b9 Merged revisions 24110-24112 via svnmerge from
https://svn.dev.java.net/svn/hudson/branches/rc

........
  r24110 | kohsuke | 2009-11-25 17:14:49 -0800 (Wed, 25 Nov 2009) | 22 lines
  
  On my production server I started seeing a strange NPE
  like this:
  
  java.lang.NullPointerException
      at hudson.model.Label.contains(Label.java:277)
      at hudson.model.Queue$JobOffer.canTake(Queue.java:177)
      at hudson.model.Queue$ApplicableJobOfferList.(Queue.java:767)
      at hudson.model.Queue$ApplicableJobOfferList.(Queue.java:759)
      at hudson.model.Queue.pop(Queue.java:684)
      at hudson.model.Executor.grabJob(Executor.java:161)
      at hudson.model.Executor.run(Executor.java:103)
  
  The only possibility is that the getNodes() is returning null,
  and that's only possible if Label.getNodes() returns null,
  which in turn is only possible if the assignment to nodes
  is overwritten by the reset method before it's used as a
  return value.
  
  This fix should eliminate the possibility that the getNodes()
  method return null.
........
  r24111 | kohsuke | 2009-11-25 17:15:45 -0800 (Wed, 25 Nov 2009) | 2 lines
  
  Actually, getNodes() has another possibility of such a data race.
........
  r24112 | kohsuke | 2009-11-25 17:24:27 -0800 (Wed, 25 Nov 2009) | 1 line
  
  typo
........


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@24127 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-26 09:10:31 +00:00
kohsuke cf22345820 [FIXED HUDSON-4820] Fallback gracefully if JNA is not available.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@24103 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-25 23:21:17 +00:00
mindless 49b47dc41e [FIXED HUDSON-4927] Send build status email to valid addresses rather than aborting
for one invalid address


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@24091 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-25 16:40:25 +00:00
kohsuke fdad6faa3f report the key milestone during the initialization.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@24035 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-24 22:40:01 +00:00
kohsuke c9f90e508a This logging doesn't contribute much
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@24033 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-24 22:01:22 +00:00
kohsuke fdc6701d39 use the system property to control the log level
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@24028 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-24 19:40:10 +00:00
jglick 5b7c857cfd [HUDSON-4941] Log which file had an XML parse error to assist in diagnosis & fix.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@24022 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-24 16:36:07 +00:00
javadude bf8c9fba1e Added try/catch in AbtractBuild checkout handling to allow SCM plugins that throw exceptions to be retried.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@24010 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-24 05:33:09 +00:00
mindless 34c15c775e [FIXED HUDSON-1867] Add ability to delete users from Hudson
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@24009 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-24 03:59:43 +00:00
kohsuke fd13eee6d5 Merged revisions 23666-23667,23670,23711,23782-23785,23788,23809-23810,23817,23859,23870,23879,23899-23904,23906-23907,23909,23913 via svnmerge from
https://www.dev.java.net/svn/hudson/branches/managed-startup

........
  r23666 | kohsuke | 2009-11-11 15:56:46 -0800 (Wed, 11 Nov 2009) | 1 line
  
  Reworked the initialization logic
........
  r23667 | kohsuke | 2009-11-11 16:01:56 -0800 (Wed, 11 Nov 2009) | 1 line
  
  fixed a failing test
........
  r23670 | kohsuke | 2009-11-11 16:42:32 -0800 (Wed, 11 Nov 2009) | 1 line
  
  use a non-snapshot
........
  r23711 | kohsuke | 2009-11-13 14:27:28 -0800 (Fri, 13 Nov 2009) | 1 line
  
  Session -> Reactor
........
  r23782 | kohsuke | 2009-11-17 10:35:14 -0800 (Tue, 17 Nov 2009) | 1 line
  
  Poorman's clone of JDK6 ServiceLoader.
........
  r23783 | kohsuke | 2009-11-17 10:56:25 -0800 (Tue, 17 Nov 2009) | 1 line
  
  Integrated the fatal support so that all errors are sent to the listener.
........
  r23784 | kohsuke | 2009-11-17 10:58:07 -0800 (Tue, 17 Nov 2009) | 1 line
  
  with the new reactor initialization, things are getting too verbose
........
  r23785 | kohsuke | 2009-11-17 11:18:45 -0800 (Tue, 17 Nov 2009) | 1 line
  
  failing to load jobs are non-fatal, too
........
  r23788 | kohsuke | 2009-11-17 13:18:59 -0800 (Tue, 17 Nov 2009) | 1 line
  
  logging the exception properly
........
  r23809 | kohsuke | 2009-11-17 18:45:47 -0800 (Tue, 17 Nov 2009) | 1 line
  
  releasing 1.1 as milestone
........
  r23810 | kohsuke | 2009-11-17 18:47:37 -0800 (Tue, 17 Nov 2009) | 2 lines
  
  - use a better idiom for building a sequence
  - use null display name to signify internal book-keeping tasks that's not worth displaying
........
  r23817 | kohsuke | 2009-11-18 07:54:17 -0800 (Wed, 18 Nov 2009) | 1 line
  
  removed accidental JDK6 dependency.
........
  r23859 | kohsuke | 2009-11-19 11:03:28 -0800 (Thu, 19 Nov 2009) | 1 line
  
  introducing the strategy pattern to hook into key decision making points during the start up
........
  r23870 | kohsuke | 2009-11-19 14:33:07 -0800 (Thu, 19 Nov 2009) | 1 line
  
  bug fix. These steps add additional tasks to the reactor, so they need to also prevent future milestones from getting attained.
........
  r23879 | kohsuke | 2009-11-19 16:54:59 -0800 (Thu, 19 Nov 2009) | 1 line
  
  moved the logic to the strategy.
........
  r23899 | kohsuke | 2009-11-20 09:32:13 -0800 (Fri, 20 Nov 2009) | 1 line
  
  handle duplicate plugins better
........
  r23900 | kohsuke | 2009-11-20 10:06:42 -0800 (Fri, 20 Nov 2009) | 1 line
  
  support pre-exploded plugin
........
  r23901 | kohsuke | 2009-11-20 10:49:04 -0800 (Fri, 20 Nov 2009) | 1 line
  
  making it a subtype
........
  r23902 | kohsuke | 2009-11-20 10:54:42 -0800 (Fri, 20 Nov 2009) | 1 line
  
  allow InitStrategy to skip some tasks
........
  r23903 | kohsuke | 2009-11-20 11:03:38 -0800 (Fri, 20 Nov 2009) | 1 line
  
  doc improvement.
........
  r23904 | kohsuke | 2009-11-20 11:03:49 -0800 (Fri, 20 Nov 2009) | 1 line
  
  no need to throw exceptions
........
  r23906 | kohsuke | 2009-11-20 11:17:34 -0800 (Fri, 20 Nov 2009) | 1 line
  
  debug switch to disable the automatic launch of slaves
........
  r23907 | kohsuke | 2009-11-20 11:25:15 -0800 (Fri, 20 Nov 2009) | 1 line
  
  added a magic object for cancelling all saves
........
  r23909 | kohsuke | 2009-11-20 11:29:53 -0800 (Fri, 20 Nov 2009) | 1 line
  
  moving initialization up
........
  r23913 | kohsuke | 2009-11-20 13:32:08 -0800 (Fri, 20 Nov 2009) | 1 line
  
  seeing heap space problem during tests
........


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23992 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-23 19:33:33 +00:00
kohsuke 7335533d68 [FIXED HUDSON-4873] in 1.336
Matrix configuration builds should continue even when Hudson is about to shut down.
    (<a href="https://hudson.dev.java.net/issues/show_bug.cgi?id=4873">issue 4873</a>)


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23980 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-23 16:55:03 +00:00
kohsuke 686d1b9283 [HUDSON-4876] Compatibility for the caller. This is more convenient for Jelly scripts, too.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23979 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-23 15:00:31 +00:00
kohsuke a9f3c9c1e9 [FIXED HUDSON-4876] If restart is not supported, explain why.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23978 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-23 14:53:06 +00:00
mindless 57f34037d2 [FIXED HUDSON-4924] avoid exception if a plugin implementing LabelFinder
extension provides a null label.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23975 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-23 06:57:25 +00:00
mindless 3be4551e3b [FIXED HUDSON-1986] Update or remove lastSuccessful/lastStable symlinks on filesystem
as appropriate when a build is deleted.  Based on patch from xlv.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23973 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-22 23:02:55 +00:00
mindless b4af8a5a2a Fix createSymlink so it overwrites existing link properly if the existing
link points to a non-existent file/dir (in this case File.exists() returns
false, so it was not removed before creating new symlink).
This change also avoids exec of "rm -rf" when simple File.delete() succeeds.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23972 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-22 22:54:13 +00:00
mindless b86b2d7226 set logger name in LogRecords sent from LogTaskListener,
but also check for null logger name in LogRecorder to avoid
NPE from any other such case.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23971 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-22 22:52:00 +00:00
mindless a96c6e02f8 [FIXED HUDSON-4894] match windows absolute path like C:/path as requested by torbent.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23889 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-20 16:14:51 +00:00
kohsuke 2e3365a070 Improved the error diagnostics on the failure to establish connection with JNLP slaves early on.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23883 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-20 02:52:49 +00:00
kohsuke 63e48ae865 improved the diagnosability.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23882 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-20 01:49:03 +00:00
mindless b6600a3fbd User pages showed add/edit description link to users without permission to edit,
and guests were allowed to edit the user profile for anonymous user.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23881 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-20 01:33:09 +00:00