kohsuke
dce4dfacfb
Merged revisions 31908-31909 via svnmerge from
...
https://svn.dev.java.net/svn/hudson/branches/rc
........
r31908 | kohsuke | 2010-06-09 20:47:06 -0700 (Wed, 09 Jun 2010) | 1 line
additional compilation problem
........
r31909 | kohsuke | 2010-06-09 21:08:13 -0700 (Wed, 09 Jun 2010) | 1 line
fixing compilation problems
........
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@31910 71c3de6d-444a-0410-be80-ed276b4c234a
2010-06-10 04:11:48 +00:00
kohsuke
a559b1635a
Fixed http://n4.nabble.com/Password-masking-when-running-commands-on-a-slave-tp1753033p1753033.html
...
Mask wasn't sent properly to slaves.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@29920 71c3de6d-444a-0410-be80-ed276b4c234a
2010-04-10 01:17:04 +00:00
kohsuke
9dbd212039
fixed NPE if stdout isn't given:
...
Exception:
Stacktrace:
java.lang.NullPointerException: out is null
at hudson.util.StreamCopyThread.(StreamCopyThread.java:44)
at hudson.util.StreamCopyThread.(StreamCopyThread.java:51)
at hudson.Proc$LocalProc.(Proc.java:150)
at hudson.Proc$LocalProc.(Proc.java:121)
at hudson.Launcher$LocalLauncher.launch(Launcher.java:633)
at hudson.Launcher$ProcStarter.start(Launcher.java:268)
at hudson.Launcher$ProcStarter.join(Launcher.java:275)
at hudson.plugins.script_realm.ScriptSecurityRealm.authenticate(ScriptSecurityRealm.java:62)
at hudson.security.AbstractPasswordBasedSecurityRealm$Authenticator.retrieveUser(AbstractPasswordBasedSecurityRealm.java:137)
at org.acegisecurity.providers.dao.AbstractUserDetailsAuthenticationProvider.authenticate(AbstractUserDetailsAuthenticationProvider.java:119)
at org.acegisecurity.providers.ProviderManager.doAuthentication(ProviderManager.java:195)
at org.acegisecurity.AbstractAuthenticationManager.authenticate(AbstractAuthenticationManager.java:45)
at org.acegisecurity.ui.webapp.AuthenticationProcessingFilter.attemptAuthentication(AuthenticationProcessingFilter.java:71)
at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:252)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:173)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:66)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)
at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
at winstone.RequestDispatcher.forward(RequestDispatcher.java:333)
at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:244)
at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150)
at java.lang.Thread.run(Thread.java:637)
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@29867 71c3de6d-444a-0410-be80-ed276b4c234a
2010-04-08 05:29:38 +00:00
jglick
fbda18e384
[FIXED HUDSON-5296] Remote launcher failed to print any of the commands it was running to the listener the way the local launcher does.
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@25870 71c3de6d-444a-0410-be80-ed276b4c234a
2010-01-15 18:41:51 +00:00
mindless
04f9e38662
envVars was unused in LocalLauncher.. add these to env.
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@25360 71c3de6d-444a-0410-be80-ed276b4c234a
2010-01-04 19:05:14 +00:00
kohsuke
6ae6d7d229
typo
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@24850 71c3de6d-444a-0410-be80-ed276b4c234a
2009-12-22 17:56:21 +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
mindless
21e3b3ec60
Add "since .." on deprecated things
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21863 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-18 18:54:42 +00:00
mindless
db93c57e03
Add @Override annotations, one copyright header and some tab->ws
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21655 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-14 19:10:57 +00:00
kohsuke
550e2d8c57
added a reference to a typical way of creating a Launcher
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@19668 71c3de6d-444a-0410-be80-ed276b4c234a
2009-07-13 19:20:49 +00:00
kohsuke
a86fe5e9c7
reformatted import statements
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@19435 71c3de6d-444a-0410-be80-ed276b4c234a
2009-07-06 21:32:11 +00:00
kohsuke
af1d6538f4
generalized ProcessTreeKiller to expose more system information, so that the plugins and core can do more interesting things.
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@19434 71c3de6d-444a-0410-be80-ed276b4c234a
2009-07-06 21:31:29 +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
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
3e91399493
added a convenience constructor
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@16995 71c3de6d-444a-0410-be80-ed276b4c234a
2009-04-10 01:39:02 +00:00
kohsuke
8585d3d5fa
added a hook for decorating launchers
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@16994 71c3de6d-444a-0410-be80-ed276b4c234a
2009-04-10 01:27:08 +00:00
kohsuke
0225c0a849
made TaskListener available
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@16141 71c3de6d-444a-0410-be80-ed276b4c234a
2009-03-10 05:41:47 +00:00
kohsuke
c3ae1b7af9
prefer EnvVars over plain Map to signify the semantic difference between those two.
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15712 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-25 01:52:42 +00:00
huybrechts
87eb6367cd
[HUDSON-2918] node properties and environment variables
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15502 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-20 22:12:06 +00:00
kohsuke
f906de445f
Hudson will now kill all the processes that are left behind by a build, to maintain
...
the stability of the cluster.
(<a href="https://hudson.dev.java.net/issues/show_bug.cgi?id=2729 ">issue 2729</a>)
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15289 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-13 16:43:59 +00:00
kohsuke
5a828cc7c1
separating ZFS installation into two steps so that Hudson can ask for the super user password
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15262 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-12 20:31:24 +00:00
kohsuke
1a1d0d74d5
license header clean up
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15081 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-06 20:05:24 +00:00
kohsuke
ec2a8e6ac0
After looking at HUDSON-2606, I think this method is better deprecated (although the inaccuracy in this method doesn't really describe the problem described in the bug report.)
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@13279 71c3de6d-444a-0410-be80-ed276b4c234a
2008-11-17 02:46:31 +00:00
kohsuke
81bf68c5ed
invocation of Array.toString()
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@11274 71c3de6d-444a-0410-be80-ed276b4c234a
2008-08-06 16:51:35 +00:00
kohsuke
ab1816c13c
see discussion in http://www.nabble.com/Getting-the-name-of-the-node-td18649119.html
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@11020 71c3de6d-444a-0410-be80-ed276b4c234a
2008-07-25 17:29:36 +00:00
kohsuke
b5a520978a
Added environment variable expansion. See http://www.nabble.com/HUDSON_EXEC-exported-tt17135819.html
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@10175 71c3de6d-444a-0410-be80-ed276b4c234a
2008-06-17 18:52:03 +00:00
kohsuke
baa6c9d6ba
enabling the magic cookie
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@7978 71c3de6d-444a-0410-be80-ed276b4c234a
2008-03-23 05:29:20 +00:00
kohsuke
a1fbc4bffc
hooking up ProcessTreeKiller
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@7976 71c3de6d-444a-0410-be80-ed276b4c234a
2008-03-23 05:02:01 +00:00
kohsuke
bda15d2acb
integrated winp so that Hudson can kill processes recursively on Windows.
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@7016 71c3de6d-444a-0410-be80-ed276b4c234a
2008-02-08 06:17:02 +00:00
kohsuke
01e423f4ed
synchronized output
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@6940 71c3de6d-444a-0410-be80-ed276b4c234a
2008-02-02 20:13:18 +00:00
stephenconnolly
0ff8353b2b
I am quite sure I had a good reason for wanting the length of a masked portion of a command to be equal to the length of the thing that is masked... but for the life of me I cannot remember why. Making all masks have fixed length to provide less information to password snoopers
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@5303 71c3de6d-444a-0410-be80-ed276b4c234a
2007-10-17 08:23:31 +00:00
stephenconnolly
63d1032886
Issue 911. Note: The censored portions will remain visible through /proc, pargs, process explorer, etc. i.e. people logged in on the same machine. These versions of the launch command just ensures that it is not visible from a build log which is exposed via the web.
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@5295 71c3de6d-444a-0410-be80-ed276b4c234a
2007-10-16 09:00:49 +00:00
kohsuke
9944408b68
doc improvement.
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@4904 71c3de6d-444a-0410-be80-ed276b4c234a
2007-09-23 17:22:56 +00:00
kohsuke
930eaa6de8
improved diagnostics.
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@3655 71c3de6d-444a-0410-be80-ed276b4c234a
2007-07-11 13:39:37 +00:00
kohsuke
a5ac77ebb6
fixed #614 and #292 . When the executor thread is interrupted, it is handled as an abort, not as a failure.
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@3499 71c3de6d-444a-0410-be80-ed276b4c234a
2007-06-22 01:14:05 +00:00
kohsuke
69ca99297b
fixed #452 "Windows slave won't execute dos commands".
...
Env variable overrides like PATH needs to be done carefully, so that override happens on the slave, not on the master.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@3201 71c3de6d-444a-0410-be80-ed276b4c234a
2007-04-22 17:22:17 +00:00
kohsuke
326ba5da5b
doc improvement.
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@3196 71c3de6d-444a-0410-be80-ed276b4c234a
2007-04-21 17:04:59 +00:00
kohsuke
246d9dcc57
fixed #501 "Selected JDK is ignored for Maven build".
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@3188 71c3de6d-444a-0410-be80-ed276b4c234a
2007-04-21 14:51:52 +00:00
kohsuke
2fa1b0cb8a
make sure to terminate the process when the channel is severed.
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@3186 71c3de6d-444a-0410-be80-ed276b4c234a
2007-04-21 14:27:46 +00:00
kohsuke
a217a2f12d
split out Launcher implementation that relies on Channel.
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@2572 71c3de6d-444a-0410-be80-ed276b4c234a
2007-03-22 23:29:47 +00:00
kohsuke
6cfda89163
properly quote tokens when it needs to be quoted.
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@2335 71c3de6d-444a-0410-be80-ed276b4c234a
2007-03-04 06:04:55 +00:00
kohsuke
c3e6447386
fixed bugs in launching native maven build remotely.
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@2324 71c3de6d-444a-0410-be80-ed276b4c234a
2007-03-04 04:38:07 +00:00
kohsuke
7ef53f943a
modified to simply inherit the environment when launching a sub-channel.
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@2309 71c3de6d-444a-0410-be80-ed276b4c234a
2007-03-03 02:26:29 +00:00
kohsuke
2d8aa91682
modified to use maven-agent to launch M2 outside Hudson JVM.
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@2294 71c3de6d-444a-0410-be80-ed276b4c234a
2007-03-03 00:48:13 +00:00
kohsuke
144208352c
added a debug option to show the full path of the current directory.
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@1606 71c3de6d-444a-0410-be80-ed276b4c234a
2007-01-03 18:37:56 +00:00
kohsuke
19860fa070
merging remoting-integration branch
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@1523 71c3de6d-444a-0410-be80-ed276b4c234a
2006-12-29 19:15:53 +00:00
kohsuke
4cabee9f18
typo fixes.
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@1396 71c3de6d-444a-0410-be80-ed276b4c234a
2006-12-20 19:20:31 +00:00
jglick
239948d4d4
Some compiler lint.
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@1236 71c3de6d-444a-0410-be80-ed276b4c234a
2006-11-23 00:30:05 +00:00