Commit Graph
4135 Commits
Author SHA1 Message Date
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
mindless 03bc0a168d [FIXED HUDSON-4877] Fixed handling of non-ASCII characters in external job submission
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23819 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-18 17:47:02 +00:00
mindless f71c79918a [FIXED HUDSON-4878] r22948 introduced a little bug in that a label with no nodes
generates an exception when trying to get the cause of blockage (calls next() on
empty iterator)


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23811 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-18 06:37:09 +00:00
mindless 65b3e5102f [FIXED HUDSON-2360] Space in axis value for matrix project was lost on reconfiguration
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23757 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-16 18:41:05 +00:00
mindless 4039345b0e [HUDSON-4066] Add version# is slave.jar and report this in log when a node is launched.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23750 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-16 05:21:31 +00:00
mindless 0d39e761b3 [FIXED HUDSON-3057] configure RememberMeAuthenticationProvider with PAMSecurityRealm,
so "remember me" feature works.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23740 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-15 22:44:18 +00:00
mindless a93e851797 [HUDSON-4831] Record duplicate causes again, but now update display on the build page
to say (# times) for duplicates instead of listing them many times.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23731 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-14 22:27:31 +00:00
mindless 20688553cb [FIXED HUDSON-4831] prevent duplicate cause entries for a build
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23699 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-13 05:47:16 +00:00
kohsuke 36040b9a7a [FIXED HUDSON-4080] Node variables not passed through to Maven jobs. In 1.335.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23695 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-13 02:54:36 +00:00
kohsuke d4ad980691 Merged revisions 23689-23691 via svnmerge from
https://svn.dev.java.net/svn/hudson/branches/rc

........
  r23689 | kohsuke | 2009-11-12 15:35:27 -0800 (Thu, 12 Nov 2009) | 1 line
  
  improved diagnosability
........
  r23690 | kohsuke | 2009-11-12 18:03:42 -0800 (Thu, 12 Nov 2009) | 1 line
  
  adding a probe to diagnose a sporadic test failure
........
  r23691 | kohsuke | 2009-11-12 18:14:21 -0800 (Thu, 12 Nov 2009) | 1 line
  
  I think this is causing a test failure in ExtendedReadPermissionTest, as the existing alice/bob/charlie users prevent the data on the disk from loading.
........


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23692 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-13 02:18:09 +00:00
mindless 8406095df3 change system property from .neverUpdate to .never to match what UpdateCenter had,
and is documented on wiki


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23683 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-12 18:01:01 +00:00
kohsuke d0555e8973 this isn't specific to Maven anymore
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23681 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-12 15:34:27 +00:00
kohsuke 121c258ff1 socket to channel needs to use a Socket(Input|Output)Stream
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23680 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-12 15:33:18 +00:00
kohsuke ca54609aa2 Hudson's UDP broadcast/discovery now supports IP multicast
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23679 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-12 15:08:48 +00:00
mindless 34ccf95285 [HUDSON-4822] patch from lkishalmi to return after sending redirect in doLoginEntry
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23678 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-12 04:24:47 +00:00
mindless f73f51d2b4 Fix so disabled permissions are not shown in project-specific permission matrix
(EXTENDED_READ has been exposed there since 1.325 even w/o Extended-Read plugin
 to enable that permission)


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23659 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-11 20:16:27 +00:00
kohsuke f055935603 Supported a relative path in the custom workspace directory, which resolves from FS root of the slave.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23656 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-11 19:20:15 +00:00
mindless 2fae128166 add missing checkPermission(CONFIGURE) to POST data to /job/{jobname}/config.xml
(was only checking EXTENDED_READ).  Added unit test.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23652 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-11 04:25:05 +00:00
mindless 9d750356e1 [FIXED HUDSON-4588] catch NPE from TestResultAction constructor and report a nicer message
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23640 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-11 00:05:45 +00:00
mindless ed5d70d191 [FIXED HUDSON-4573] Write log message and ignore unrecognized permissions when loading XML,
so these behave the same as other unknown fields (builders, publishers, etc).
Also changed context.convertAnother() calls to simpler reader.getValue()/writer.setValue()


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23637 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-10 22:43:38 +00:00
mindless bc94c23868 Plugin manager now shows warning for upgrade/install of plugins
into a Hudson that is older than the plugin was built for.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23634 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-10 20:30:51 +00:00
mindless 79f22cd661 Project read permission was not enforced via /jobCaseInsensitive/jobname path.
Added unit test.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23629 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-10 07:08:14 +00:00
kohsuke 38da83339b [FIXED HUDSON-4802] in 1.334. The patch was slightly modified.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23626 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-09 23:47:30 +00:00
kohsuke 80db087f64 added a bunch of CLI commands to Computer.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23617 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-09 22:10:17 +00:00
kohsuke 846851344a doc improvement.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23616 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-09 22:05:24 +00:00
mindless 14a37dba5b [FIXED HUDSON-4557] Moving consoleText handling from jelly to java in r20927
caused Content-Length header to no longer be written.  wget/curl seem ok with
this, but browsers display nothing for "view as plain text".
Stapler's DefaultScriptInvoker wraps the OutputStream in a filter to prevent
jelly from flushing the output; copied this into Run.doConsoleText and now
the Content-Length header gets written again, for both compressed/plain output.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23605 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-09 17:53:34 +00:00
mindless 6ebcd2d97d [FIXED HUDSON-4765] Fix broken links for failed tests on MatrixBuild page.
Also removed extra slashes in links on MatrixTestResult page.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23569 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-08 17:44:44 +00:00
mindless 2b1a457f68 Deprecate util.StringConverter2 (extends deprecated XStream class,
but can't change it here to keep binary compatibility).
Add new HeapSpaceStringConverter to replace this.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23564 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-08 01:50:42 +00:00
mindless 2be4e9691d Move ItemListener.onCreated notifiction from doCreateProject to createProject
and createProjectFromXML.  This add notification that was missing for project
creation from XML or CLI, and will catch anything else using Hudson.createProject
directly.  Added unit test for CLI case.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23553 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-07 00:12:48 +00:00
kohsuke 4c6319fe4f - CLI "build" command now supports passing parameters.
- introduced SimpleParameterDefinition to eliminate the common code

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23543 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-06 21:43:15 +00:00
kohsuke 51669e429d typo
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23530 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-06 19:25:13 +00:00
mindless 5f1c3fc878 after new job creation, remove view/{default-view} from redirect URL if created in default view
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23529 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-06 18:46:00 +00:00
jglick 6ccad2bc32 [FIXED HUDSON-4611] hudson.proc.RemoteProc.kill() was a no-op.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23526 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-06 18:34:11 +00:00
jglick 01f8034b32 If a process sends data to stdout but no stdout is configured, an NPE can result.
Observed only inside a unit test, but makes sense to treat out symmetrically with err and in.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23525 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-06 18:32:49 +00:00
jglick 03842a08c9 If a process sends data to stdout but no stdout is configured, an NPE can result.
Observed only inside a unit test, but makes sense to treat out symmetrically with err and in.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23524 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-06 18:31:51 +00:00
abayer 91bffe3b46 Adding SaveableListener, with calls to SaveableListener.fireOnChange in Saveable.save implementations
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23502 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-05 16:11:47 +00:00
kohsuke c23e5ae206 List erases to List no matter what the type parameter is, so these two are unnecessary
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23490 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-05 00:41:54 +00:00
kohsuke 693734fe2d fixed a binary incompatibility introduced by rev.23326 due to the way generics/erasure works
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23489 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-05 00:39:46 +00:00
kohsuke b307fe14c2 Retry shouldn't kick in if the build is aborted during checkout.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23485 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-05 00:05:40 +00:00
kohsuke 6f4edfcbf5 this is more portable.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23471 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-04 19:29:25 +00:00
mindless c825c2bbfd Check if jna-posix used a fallback java impl which does not support many operations.
If so, don't use posix in Util.createSymlink.
When posix IS used but fails, include errno in log.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23470 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-04 19:25:14 +00:00
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
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