Tim Lantz
656738c020
[JENKINS-18368] added isUnix override to launcher decorator classes so that isUnix is maintained for remote launcherswq
2013-06-16 23:23:49 -04:00
Jesse Glick
58484bb80c
[FIXED JENKINS-15733] ArrayIndexOutOfBoundsException from Launcher due to misinterpretation of ProcStarter.envs in f5cebdc.
...
(Should this field be made a [LinkedHash]Map<String,String> or even EnvVars?
It is protected in a final class, so effectively package-private, thus not a b/w compat issue.)
2012-11-07 16:36:05 -05:00
Kohsuke Kawaguchi
0e8acc1507
these didn't make it into 1.488
2012-10-25 06:28:22 +09:00
Kohsuke Kawaguchi
f5cebdc843
Added another decorator.
...
This allows us to pass in a proper Launcher that handles all the environment variables without asking individual user to fill in a proper environment variables
2012-10-25 03:03:04 +09:00
Jesse Glick
1f9ce5e4da
Javadoc improvements inspired by “How to stop passwords used by my scm plugin from appearing the log?” on jenkinsci-dev.
2012-09-12 14:31:30 -04:00
Jesse Glick
2f128a77b2
Mangled Javadoc.
2012-07-15 11:31:40 -04:00
Ryan Campbell
684fe360a5
Don't prefix the masks if they are null (prevent NPE)
...
fix tabs
2012-03-15 18:55:35 -05:00
Craig P. Motlin
22b13104b3
Remove unnecessary interface modifiers.
2011-11-07 14:52:11 -08:00
Kohsuke Kawaguchi
8c95d32086
added another convenience method
2011-09-23 15:16:59 -07:00
Nigel Magnay
5679d019ec
Move hudson.model.Jenkins to be jenkins.model.Jenkins - part II
...
Just import changes, from hudson.model.Jenkins -> jenkins.model.Jenkins,
and Javadoc comments.
Signed-off-by: Nigel Magnay <nigel.magnay@gmail.com >
2011-05-29 11:06:28 +01:00
Nigel Magnay
70c1065814
Stage 1 : Create hudson.model.Jenkins, make Hudson derive from Jenkins.
...
Signed-off-by: Nigel Magnay <nigel.magnay@gmail.com >
2011-05-29 11:00:58 +01:00
Olivier Lamy
888b9d3683
[JENKINS-9006] update changelog
2011-03-10 21:29:16 +01:00
Kohsuke Kawaguchi
a545a394d9
for serialization work these interfaces need to be public
2011-02-16 08:28:00 -08:00
Kohsuke Kawaguchi
96dd84b5d0
[FIXED JENKINS-7809] expose child process stdout as InputStream.
...
I added a mode where one can launch a child process without the built-in pumping support, making it trivial to read until EOF in the distributed environments.
This concludes the fix.
2011-02-16 08:28:00 -08:00
Kohsuke Kawaguchi
3a3690b281
[FIXED JENKINS-7809] fixed a race condition in obtaining the tail of the output from remote process.
2011-02-14 17:13:24 -08:00
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