Skip to content
Permalink
Browse files
[FIXED JENKINS-12771] The init script will execute each time the inst…
…ance is started
  • Loading branch information
Francis Upton IV committed Feb 15, 2012
1 parent 9830909 commit 8035bc56b7734858c74c4139888e82fc5abce3fc
Showing 1 changed file with 1 addition and 1 deletion.
@@ -71,7 +71,7 @@ else if (bootstrapResult == SAMEUSER)
SCPClient scp = conn.createSCPClient();
String initScript = computer.getNode().initScript;

if(initScript!=null && initScript.trim().length()>0 && conn.exec("test -e /.hudson-run-init", logger) !=0) {
if(initScript!=null && initScript.trim().length()>0 && conn.exec("test -e ~/.hudson-run-init", logger) !=0) {
logger.println("Executing init script");
scp.put(initScript.getBytes("UTF-8"),"init.sh","/tmp","0700");
Session sess = conn.openSession();

0 comments on commit 8035bc5

Please sign in to comment.