Commit Graph

3706 Commits

Author SHA1 Message Date
jglick aad955d515 [FIXED HUDSON-3964] Can escape characters in username to make an ID, but retain the original form for display & email purposes.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@19322 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-30 16:31:44 +00:00
kohsuke 1e9cc3b4e3 Fixed a possible "Cannot create a file when that file already exists" error in managed Windows slave launcher.
<a href="http://www.nabble.com/%22Cannot-create-a-file-when-that-file-already-exists%22---huh--td23949362.html#a23950643">report</a>

SmbFile.mkdirs() behave differently to File.mkdirs(), and it fails if the directory already exists.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@19321 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-30 15:54:59 +00:00
kohsuke 8ad45a5f10 introduced a visitor pattern to avoid code duplication
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@19320 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-30 14:54:26 +00:00
jglick 23adbc51dc [FIXED HUDSON-3914] JDK 1.4.2 installations were broken because there is no option to select a language.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@19225 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-25 22:20:09 +00:00
kohsuke 175eb35627 [FIXED HUDSON-3924] Exposing additional items in the XML API.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@19224 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-25 18:36:00 +00:00
swiest 8baca8d5b6 Deprecated Util.combine(long,String) method and rewrote its callers to use localizable resources.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@19190 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-24 19:07:50 +00:00
kohsuke 27d0fed834 fixed import statements
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@19186 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-24 16:08:02 +00:00
kohsuke 4a00f5a7d7 I think this is better
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@19185 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-24 16:07:49 +00:00
kohsuke 3778279edf fixed and improved the retry logic
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@19184 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-24 16:06:59 +00:00
kohsuke 78f3ab1ba9 fixed the bug
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@19168 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-23 23:12:46 +00:00
kohsuke a00e7d579d merged back the changes in the RC branch
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@19167 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-23 23:08:06 +00:00
kohsuke 59d578c24e renamed to "SCM checkout retry count" to clarify what it really means
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@19165 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-23 22:46:53 +00:00
dty 1d3896679a [FIX BUG 3854] Add support for the X-Forwarded-For HTTP header, which proxies
commonly filled in to pass along the IP address of the client. If this header
exists, use the first IP address as the client IP instead of calling
getRemoteAddr.

Added test cases to test various situations.



git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@19132 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-22 23:52:38 +00:00
kohsuke bf97df3690 Added delete-job, enable-job, and disable-job command.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@19119 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-22 20:16:16 +00:00
kohsuke 5107d8d784 added license header
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@19113 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-22 18:38:20 +00:00
kohsuke 1648ecc959 Forgot to put @Extension
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@19112 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-22 18:33:27 +00:00
kohsuke 42b93fe0d9 Exposes more methods to enable decoration of Launcher
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@19109 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-22 17:30:05 +00:00
kohsuke ee2ef56a0f added one more convenience method.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@19095 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-20 03:13:29 +00:00
kohsuke 027a7e3e1b Fixed a bug in the non-ASCII character handling in remote bulk file copy.
(<a href="http://www.nabble.com/WG%3A-Error-when-saving-Artifacts-td24106649.html">report</a>)


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@19075 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-19 23:19:33 +00:00
kohsuke fcc7514394 Fixed a bug in the non-ASCII character handling in remote bulk file copy.
(<a href="http://www.nabble.com/WG%3A-Error-when-saving-Artifacts-td24106649.html">report</a>)


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@19074 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-19 23:18:19 +00:00
kohsuke 47319ae718 imported from Ant 1.7.0 to patch encoding related issues.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@19073 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-19 23:07:06 +00:00
kohsuke 1447affed5 fixed a compilation error
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@19072 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-19 20:54:39 +00:00
kohsuke 9e07241fd2 Starting Hudson 1.312, this method is also invoked for the master, not just for slaves.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@19069 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-19 20:08:36 +00:00
shinodkm 4c2a73f61a Added retry option for check out . ie, If checkout fail, it will retry the specified number of times.
BUG FIX : 3855

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@19062 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-19 08:38:30 +00:00
shinodkm 636c5cd843 Added retry option for check out . ie, If checkout failes, it will retry the specified number of times.
BUG FIX : 3855

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@19061 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-19 08:36:46 +00:00
shinodkm dbef637a5c Added retry option for check out . ie, If checkout failes, it will retry the specified number of times.
BUG FIX : 3855

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@19060 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-19 08:35:43 +00:00
kohsuke f7a0608f49 Supported self restart on all containers in Unix
(<a href="http://www.nabble.com/What-are-your-experiences-with-Hudson-and-different-containers--td24075611.html">report</a>)


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@19053 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-19 01:24:45 +00:00
mindless 161bfe3bbe [FIXED HUDSON-3326] handle null axes in getLayouter(),
which can occur if build page is access right when build starts,
before axes field is initialized.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@19017 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-17 23:10:13 +00:00
kohsuke ceee797674 [FIXED HUDSON-3875] According to the bug report, IBM JVMs fail to load akuma for some reasons. Gracefully recover from that error. This fix will be in 1.311.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18999 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-17 00:47:10 +00:00
kohsuke c893750531 [FIXED HUDSON-3733]
I filed a bug in the JNA project to keep track of this. In the mean time, you can set the system property "hudson.os.solaris.ZFSInstaller.disabled=true" in your JVM to prevent Hudson from using ZFS (which leads to this JVM crash.)

This fix will be in 1.311.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18998 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-17 00:43:24 +00:00
kohsuke d51466bc71 [FIXED HUDSON-3878] Filter cannot be assumed to be present when Hudson starts up.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18997 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-17 00:30:13 +00:00
kohsuke a6684093da fixed NPE
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18984 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-16 23:32:57 +00:00
kohsuke 079e6dbb9c merged the RC branch
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18981 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-16 22:22:13 +00:00
kohsuke d2abcd62e0 auto-add Subversion support into a dependency list for plugins built before 1.311
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18980 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-16 19:18:08 +00:00
kohsuke ee5cba8fac added a system property to disable workspace clean up
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18963 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-16 17:57:24 +00:00
kohsuke 07a17f1f4d removed unused imports
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18962 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-16 17:53:54 +00:00
kohsuke 77172f6a48 removing final
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18961 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-16 17:48:01 +00:00
kohsuke b2b2ab1639 Set time out to avoid infinite hang when SMTP servers don't respond in time.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18959 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-16 16:41:57 +00:00
kohsuke fb83ad3e73 NPE fix
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18946 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-16 06:51:13 +00:00
kohsuke fafa4bec66 NPE fix
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18945 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-16 06:46:57 +00:00
kohsuke bcd8e37595 finally introduced the builder pattern for Launcher, to stop combinatorial explosion of the launch method
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18944 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-16 06:38:22 +00:00
kohsuke 45b30a3da6 Future used in Queue can now cancel the task
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18940 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-16 05:01:32 +00:00
kohsuke 93e366ae44 Future used in Queue can now cancel the task
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18939 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-16 04:56:21 +00:00
kohsuke cf439c5be9 StringBuffer->StringBuilder
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18938 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-16 04:42:57 +00:00
kohsuke d5dd4b853c Moving remaining pieces and really removing SVNKit from the core dependency.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18926 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-16 01:15:20 +00:00
kohsuke a20e6e43ca Because of the tricky license in SVNKit that has a viral effect, I'm moving it out into a separate plugin so that
people can choose to remove it from their distributions.



git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18923 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-16 00:59:11 +00:00
jglick d8bdd39e3d NPE configuring project tied to offline slave.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18917 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-15 23:38:30 +00:00
kohsuke 04f1dd6712 Don't populate the default value of the Subversion local directory name.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18916 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-15 20:56:45 +00:00
kohsuke 679ffdee68 Implemented more intelligent polling assisted by <tt>commit-hook</tt> from SVN repository.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18915 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-15 20:44:56 +00:00
kohsuke 7b7d126945 avoid using deprecated methods
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18914 71c3de6d-444a-0410-be80-ed276b4c234a
2009-06-15 20:27:44 +00:00