Commit Graph
32590 Commits
Author SHA1 Message Date
kohsuke cd9232853c easier more portable way
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23469 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-04 19:25:04 +00:00
kohsuke d06333d8d3 create a directory if it doesn't exist.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23464 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-04 17:57:34 +00:00
jglick 10c56deb02 [FIXED HUDSON-4760] If you export a RepositoryBrowser, it needs to actually be exportable!
Otherwise get e.g.:
org.kohsuke.stapler.export.NotExportableException: class hudson.plugins.mercurial.browser.HgWeb doesn't have @ExportedBean
	at org.kohsuke.stapler.export.Model.<init>(Model.java:44)
	at org.kohsuke.stapler.export.ModelBuilder.get(ModelBuilder.java:25)
	at org.kohsuke.stapler.export.Property.writeValue(Property.java:173)
	at org.kohsuke.stapler.export.Property.writeValue(Property.java:98)
	at org.kohsuke.stapler.export.Property.writeTo(Property.java:82)
	at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:142)
	at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:139)
	at org.kohsuke.stapler.export.Property.writeValue(Property.java:180)
	at org.kohsuke.stapler.export.Property.writeValue(Property.java:98)
	at org.kohsuke.stapler.export.Property.writeTo(Property.java:82)
	at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:142)
	at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:139)
	at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:139)
	at org.kohsuke.stapler.export.Model.writeTo(Model.java:133)
	at hudson.model.Api.doXml(Api.java:94)


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23460 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-03 20:47:43 +00:00
abayer 86c5c739fa Fixing UpdateSite.neverUpdate and tests to use it properly.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23459 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-03 20:41:44 +00:00
jglick 0431b96319 [HUDSON-4760] Forward-porting 23427 to trunk (hotfix for SCM not being @ExportedBean).
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23458 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-03 17:28:03 +00:00
mindless 5600aa9b44 [FIXED HUDSON-4739] Fixed "even if unstable" option for triggering other projects
from a Maven type project; added unit test.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23455 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-03 04:02:35 +00:00
kohsuke f527d22a70 Fixed <tt>ArrayIndexOutOfBoundsException</tt> in my view.
(<a href="http://old.nabble.com/Stack-trace-from-My-Views-ts26121656.html">report</a>)


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23435 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-03 01:08:40 +00:00
kohsuke 410582a5f9 fixed copyright header
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23434 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-03 01:01:37 +00:00
kohsuke fdb9869a3a Added "delete-builds" CLI command for bulk build record deletion.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23433 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-03 01:01:23 +00:00
kohsuke f30dff51d5 added a convenience method.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23432 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-03 00:58:38 +00:00
kohsuke fdf7c75296 define a mode that doesn't report an error.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23431 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-03 00:58:23 +00:00
kohsuke b9c40295e8 made the fromString method reusable.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23430 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-03 00:40:27 +00:00
kohsuke e168daa5fc context path can be empty, so a better rendering is needed.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23429 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-03 00:18:56 +00:00
kohsuke 65b3484e6c Merged revisions 23339,23356,23367,23369,23372 via svnmerge from
https://www.dev.java.net/svn/hudson/branches/rc

........
  r23339 | mindless | 2009-10-30 09:24:49 -0700 (Fri, 30 Oct 2009) | 4 lines
  
  Add support in XStream2.AssociatedConverterImpl for SingleValueConverter
  (fixes bug introduced in r23277 where BuildAuthorizationToken's
  ConverterImpl was changed to a SingleValueConverter).
........
  r23356 | kohsuke | 2009-10-30 11:43:47 -0700 (Fri, 30 Oct 2009) | 1 line
  
  fixed the performance problem caused by Stapler1.119, which made getTagLibrary inherit from parents
........
  r23367 | kohsuke | 2009-10-30 18:15:05 -0700 (Fri, 30 Oct 2009) | 1 line
  
  [maven-release-plugin] prepare release hudson-1_331
........
  r23369 | kohsuke | 2009-10-30 18:15:21 -0700 (Fri, 30 Oct 2009) | 1 line
  
  [maven-release-plugin] prepare for next development iteration
........
  r23372 | kohsuke | 2009-10-30 19:15:01 -0700 (Fri, 30 Oct 2009) | 1 line
  
  updated changelog as a part of the release
........


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23420 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-02 19:35:24 +00:00
mindless 310afaa9bb [HUDSON-4739] Add unit test for BuildTrigger
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23409 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-02 06:07:20 +00:00
mindless 07333d300c 3 fixes when renaming a LogRecorder:
- checkGoodName on new name (new recorder already checks, but rename didn't)
- delete config file for old name (after Hudson restart, old name would come back)
- redirect to new name instead of old (rename was getting stapler error after save)


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23405 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-01 16:42:30 +00:00
sogabe 4ab73ef7c2 Japanese localization
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23402 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-01 06:11:16 +00:00
mindless 72e0942fc9 oops, fix typo in r23393
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23399 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-01 00:39:10 +00:00
mindless d9a713d29b add trailing / on user links to skip redirect
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23398 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-01 00:34:35 +00:00
mindless 0869aafbbe make My Views link text localizable
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23397 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-01 00:32:23 +00:00
mindless 4d7b8a774d update use of deprecated stapler API (missed in r23277 commit)
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23396 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-01 00:22:05 +00:00
mindless 4ec75ea5f9 revert r23341 as it was already fixed in hudson.util.XStream2 in r23339
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23395 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-01 00:20:19 +00:00
mindless bc9db0fd0a [FIXED HUDSON-4720] Don't always append / to non-absolute action URLs,
as this may break some links (.../*.html for example).
See related HUDSON-1335, HUDSON-1679, r347 and r11319.
Updated hyperlinkMatchesCurrentPage to ignore trailing / in matching
to avoid regression in bold context links.
Also fixed tiny bug introduced in r13815 where "/" was changed to "."
in moving code from jelly to Functions, causing a couple links in
LogRecorder area (with href=".") to not show as bold.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23393 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-01 00:00:32 +00:00
sogabe 6277adff9a Japanese localization for #23328
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23376 71c3de6d-444a-0410-be80-ed276b4c234a
2009-10-31 10:48:36 +00:00
abayer 43ca4c86d2 [FIXED HUDSON-4593] Added ability to make automatic Maven artifact archiving optional
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23363 71c3de6d-444a-0410-be80-ed276b4c234a
2009-10-31 00:22:19 +00:00
kohsuke 819039e774 this version of Winstone has a fix in the concurrent session access, plus a performance improvement in the file submission handling.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23360 71c3de6d-444a-0410-be80-ed276b4c234a
2009-10-30 20:54:48 +00:00
kohsuke ce4085ccea improved caching for failed resolution
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23355 71c3de6d-444a-0410-be80-ed276b4c234a
2009-10-30 18:36:21 +00:00
kohsuke 3d1e830829 fixed a test failure.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23354 71c3de6d-444a-0410-be80-ed276b4c234a
2009-10-30 18:21:41 +00:00
kohsuke 931e2d38cc fixed NPE
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23353 71c3de6d-444a-0410-be80-ed276b4c234a
2009-10-30 18:15:21 +00:00
kohsuke 71820041a4 fixed an error during start up due to the Converter type inconsistency with the current version of XStream.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23341 71c3de6d-444a-0410-be80-ed276b4c234a
2009-10-30 17:04:04 +00:00
kohsuke fb2bf8e05f doc improvement.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23340 71c3de6d-444a-0410-be80-ed276b4c234a
2009-10-30 16:28:49 +00:00
mindless c0e51ace46 Add support in XStream2.AssociatedConverterImpl for SingleValueConverter
(fixes bug introduced in r23277 where BuildAuthorizationToken's
ConverterImpl was changed to a SingleValueConverter).


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23339 71c3de6d-444a-0410-be80-ed276b4c234a
2009-10-30 16:24:49 +00:00
kohsuke ca611db5f2 needed for printing title
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23336 71c3de6d-444a-0410-be80-ed276b4c234a
2009-10-30 03:33:28 +00:00
kohsuke a3552b4380 Hudson now sends "Accept-Ranges" header where it's supported.
(<a href="http://www.nabble.com/206-response-code-HTTP-1.1-Range-header-td25888373.html">report</a>)


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23335 71c3de6d-444a-0410-be80-ed276b4c234a
2009-10-30 01:59:41 +00:00
abayer 1f30e92055 Fixing compilation error/incompatibility
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23333 71c3de6d-444a-0410-be80-ed276b4c234a
2009-10-29 23:46:09 +00:00
abayer 56c1d298d2 [FIXED HUDSON-4553] Along with earlier commit, added /safeExit and /safeRestart web endpoints and safe-restart CLI command
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23331 71c3de6d-444a-0410-be80-ed276b4c234a
2009-10-29 22:01:18 +00:00
abayer e558908f6b Fixing test to use hudson-ci.org
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23330 71c3de6d-444a-0410-be80-ed276b4c234a
2009-10-29 21:52:30 +00:00
abayer f01b73bc99 Fixing compilation error caused by UpdateCenter.Plugin moving to UpdateSite.Plugin
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23329 71c3de6d-444a-0410-be80-ed276b4c234a
2009-10-29 21:41:45 +00:00
abayer c202a1746f Adding safeRestart to CLI and web UI
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23328 71c3de6d-444a-0410-be80-ed276b4c234a
2009-10-29 21:32:20 +00:00
kohsuke 720be7d7a1 Merged revisions 23183,23185,23245,23256,23266,23279-23284,23286 via svnmerge from
https://www.dev.java.net/svn/hudson/branches/multiple-update-sources

........
  r23183 | abayer | 2009-10-25 11:53:17 -0700 (Sun, 25 Oct 2009) | 1 line
  
  First chunk of work towards supporting multiple update centers - infrastructure in place for it, and default update center treated as only one of multiple - have to use slightly modified update-center.json though
........
  r23185 | abayer | 2009-10-25 12:25:49 -0700 (Sun, 25 Oct 2009) | 1 line
  
  a number of tweaks - among other things, now works properly with additional update centers defined in hudson.model.UpdateCenter.xml - try using http://andrewbayer.com/images/hello-world/helloWorld-update-center.json as second update center
........
  r23245 | abayer | 2009-10-27 13:45:25 -0700 (Tue, 27 Oct 2009) | 1 line
  
  Modified to support existing default update-center.json
........
  r23256 | kohsuke | 2009-10-27 18:30:15 -0700 (Tue, 27 Oct 2009) | 7 lines
  
  - moved data binding of update-center.json to UpdateSource.
  - moved some of the UpdateSource property into JSON, to improve the user experience when adding an update source.
    the user should just type in one URL, and everything else should happen automatically.
  - it doesn't make sense for UpdateSource to rely on UpdateCenterConfiguration, since behaviors cannot be
    modified per UpdateSource basis. Instead, leaving it in UpdateCenter allows us to maintain backward compatible
    behaviors with the existing custom UpdateCenterConfiguration implementation.
........
  r23266 | kohsuke | 2009-10-27 19:29:24 -0700 (Tue, 27 Oct 2009) | 1 line
  
  serve id inside JSON.
........
  r23279 | kohsuke | 2009-10-28 10:44:00 -0700 (Wed, 28 Oct 2009) | 1 line
  
  Do not special-case "default" ID. Receive hudson.war updates from wherever that provides one.
........
  r23280 | kohsuke | 2009-10-28 10:50:57 -0700 (Wed, 28 Oct 2009) | 1 line
  
  formatting change.
........
  r23281 | kohsuke | 2009-10-28 11:30:40 -0700 (Wed, 28 Oct 2009) | 1 line
  
  typo
........
  r23282 | kohsuke | 2009-10-28 11:45:06 -0700 (Wed, 28 Oct 2009) | 2 lines
  
  - added the UI to remove sites.
  - persistence of UpdateSource happens more automatically now.
........
  r23283 | kohsuke | 2009-10-28 11:50:04 -0700 (Wed, 28 Oct 2009) | 1 line
  
  UpdateSource -> UpdateSite to align terminology with Eclipse.
........
  r23284 | kohsuke | 2009-10-28 11:55:03 -0700 (Wed, 28 Oct 2009) | 5 lines
  
  Actually, for now, just having a programmatic modification to UpdateSite would satisfy the primary use case.
  
  And I'd like to upgrade YUI to a more recent version so that we can use its DataTable for UI. Plus the single update center model encourages the community to bring the code into the Hudson project, which is something we'd like to keep.
  
  So all in all, I'm postponing the UI work.
........
  r23286 | kohsuke | 2009-10-28 13:07:19 -0700 (Wed, 28 Oct 2009) | 1 line
  
  Renaming and bug fixes.
........


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23326 71c3de6d-444a-0410-be80-ed276b4c234a
2009-10-29 21:27:46 +00:00
kohsuke 938cb6ba23 Initialized merge tracking via "svnmerge" with revisions "1-23070" from
https://www.dev.java.net/svn/hudson/branches/multiple-update-sources


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23325 71c3de6d-444a-0410-be80-ed276b4c234a
2009-10-29 21:18:58 +00:00
kohsuke b1e9ba631d use the latest and greatest
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23324 71c3de6d-444a-0410-be80-ed276b4c234a
2009-10-29 21:16:39 +00:00
kohsuke 1627280a5a do deep copy.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23321 71c3de6d-444a-0410-be80-ed276b4c234a
2009-10-29 20:39:25 +00:00
kohsuke 564db95d2b pointless complexity. if there's no permissions to define, just don't have an instance.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23309 71c3de6d-444a-0410-be80-ed276b4c234a
2009-10-29 00:37:43 +00:00
kohsuke 3cd35cf8e4 bringing the pseudo immutability back.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23308 71c3de6d-444a-0410-be80-ed276b4c234a
2009-10-29 00:24:42 +00:00
kohsuke fdba356ffd pointless boxing
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23307 71c3de6d-444a-0410-be80-ed276b4c234a
2009-10-29 00:23:25 +00:00
kohsuke 07c7d15660 Initialized merge tracking via "svnmerge" with revisions "1-23304" from
https://www.dev.java.net/svn/hudson/branches/rc


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23306 71c3de6d-444a-0410-be80-ed276b4c234a
2009-10-29 00:14:05 +00:00
tbingaman 28d111ca53 Fixed use of a custom delete button caption in hetero list. The attribute needs to be passed to the prototypes, otherwise new entries will use the default caption.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23297 71c3de6d-444a-0410-be80-ed276b4c234a
2009-10-28 22:37:14 +00:00
kohsuke ed096ea21d Added the "install-plugin" command to install plugins from CLI.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23292 71c3de6d-444a-0410-be80-ed276b4c234a
2009-10-28 21:20:08 +00:00
kohsuke 0449001bd4 added a convenience method.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23290 71c3de6d-444a-0410-be80-ed276b4c234a
2009-10-28 21:03:36 +00:00