Commit 79b941ae authored by Andrew Nicols's avatar Andrew Nicols

Task: Use absolute path instead of name

parent dac26f13
......@@ -74,14 +74,14 @@ class Task {
throw new Exception("Unable to find job runner at ${pathToRunner}")
}
return runner.getName()
return runner.getAbsolutePath()
} else if (moodleVersion) {
runner = new File("${script.env.HOME}/scripts/runner/${moodleVersion.name}/run.sh")
if (!runner.exists()) {
runner = new File("${script.env.HOME}/scripts/runner/master/run.sh")
}
return runner.getName()
return runner.getAbsolutePath()
} else {
def versionName = sh (
script: 'grep "\\$branch" moodle/version.php | sed "s/^[^\']*\'\\([^\']*\\).*\$/\\1/"',
......@@ -93,7 +93,7 @@ class Task {
runner = new File("${script.env.HOME}/scripts/runner/master/run.sh")
}
return runner.getName()
return runner.getAbsolutePath()
}
throw new Exception("Unable to determine path to script runner.")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment