mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-16 21:42:27 +00:00
adding a probe to better understand http://www.nabble.com/Hudson-v.1.285---maven-job-failes-at-slave-side-td22201035.html
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15791 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
6e489a2796
commit
6fbbb526c2
1 file changed
+7
-1
@@ -304,7 +304,13 @@ final class MavenProcessFactory implements ProcessCache.Factory {
|
||||
args.add(mvn.getMavenHome());
|
||||
|
||||
// remoting.jar
|
||||
args.add(launcher.getChannel().call(new GetRemotingJar()));
|
||||
String remotingJar = launcher.getChannel().call(new GetRemotingJar());
|
||||
if(remotingJar==null) {// this shouldn't be possible, but there are still reports indicating this, so adding a probe here.
|
||||
listener.error("Failed to determine the location of slave.jar");
|
||||
throw new RunnerAbortedException();
|
||||
}
|
||||
args.add(remotingJar);
|
||||
|
||||
// interceptor.jar
|
||||
args.add(isMaster?
|
||||
Which.jarFile(hudson.maven.agent.PluginManagerInterceptor.class).getAbsolutePath():
|
||||
|
||||
Reference in new issue
Block a user