Commit Graph
4181 Commits
Author SHA1 Message Date
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
mindless 3a244cf8a0 Computer.CONFIGURE permission has existed for a long time, but it only shows the
configure link.. admin permission was needed to actually configure.
Fixed this so configuration can be done, and also hide the configure link for
master node unless you also have admin permission.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23880 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-20 00:55:07 +00:00
mindless c078a6c855 Improve display of cause of slaves being offline.
- Removed "failed to launch" message from ComputerLauncher/main.jelly
  This message was always shown, even if slave was offline for other reasons.
- Instead, added new OfflineCause.LaunchFailed which is set in SlaveComputer if channel
  is not set after calling launcher.  Now this shows the "failed to launch" message.
- Moved/copied existing translations for these strings to their new locations.
- Expanded message for in-demand strategy to say "will be relaunched when needed"
- Added text explanation and fixed display of exception for ChannelTermination cause
- Use class="warning" for default display of OfflineCause
- Added some @Override annotations


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23876 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-19 23:55:43 +00:00
mindless 991e7f8fdd [FIXED HUDSON-3890] Fix in-demand RetentionStrategy and more offline-slave fixes.
- Use isConnecting() instead of lastConnectActivity!=null in checking forceReconnect
  param.. var never resets to null, so this prevented forceReconnect==false from ever
  reconnecting (which broken in-demand strategy since 1.302 when it started using false)
- Only set ChannelTermination offline cause when the exception param is non-null.
  On orderly shutdown this was replacing the real cause of going offline.
- In setNode try to delegate to RetentionStrategy rather than calling connect directly.
  Reconfiguring a node was launching slave even if it wasn't needed per its strategy.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23875 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-19 23:37:45 +00:00
mindless 5f4d50dbfe Allow zero for inDemandDelay in RetentionStrategy.Demand.
Don't write "launching" in log if launch is not supported.
Don't need to call check() every minute for NOOP strategy.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23874 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-19 23:02:11 +00:00
mindless a8ffa18f8d fix a couple typos in comments
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23871 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-19 22:42:44 +00:00
kohsuke 5f7c8023a7 Gracefully detect the double loading of JNA instead of failing later with NoClassDefFoundError.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23864 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-19 22:24:43 +00:00
mindless e143c96f5c [FIXED HUDSON-4894] update DRIVE_PATTERN so a path like C:\ is recognized as absolute
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23832 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-18 23:38:20 +00:00
kohsuke b2dc60b246 reverting a typo introduced in r23543
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23831 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-18 23:22:00 +00:00