Skip to content

Commit

Permalink
JENKINS-18415: Can't run shining panda jobs in 1.519
Browse files Browse the repository at this point in the history
  • Loading branch information
omansion committed Jun 29, 2013
1 parent ef6792f commit 0e320e2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
Expand Up @@ -31,7 +31,6 @@
import hudson.model.Node;
import hudson.model.Project;

import java.io.File;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;
Expand Down Expand Up @@ -107,14 +106,24 @@ private void setHome(FilePath home)
this.home = home;
}

/**
* Folder containing the scripts on master
*
* @return The folder containing the scripts
*/
private FilePath getScriptsDir()
{
return Jenkins.getInstance().getRootPath().child("plugins").child("shiningpanda").child("scripts");
}

/**
* Get the VIRTUALENV module file on master.
*
* @return The VIRTUALENV module file
*/
public FilePath getMasterVirtualenvPy()
{
return new FilePath(new File(getClass().getResource(VIRTUALENV).getFile()));
return getScriptsDir().child(VIRTUALENV);
}

/**
Expand All @@ -133,7 +142,7 @@ public FilePath getMasterVirtualenvPy()
*/
public FilePath getMasterBootstrapPy()
{
return new FilePath(new File(getClass().getResource(BOOTSTRAP).getFile()));
return getScriptsDir().child(BOOTSTRAP);
}

/**
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 0e320e2

Please sign in to comment.