Commit a5334c66 authored by Andrew Nicols's avatar Andrew Nicols

Task: sh comes from Steps

parent 0c5dc6fd
......@@ -64,7 +64,7 @@ class Task {
throw new Exception("I don't know what PHP Version to test against")
}
def getPathToRunner(env) {
def getPathToRunner(env, steps) {
def runner
if (pathToRunner) {
runner = new File(pathToRunner)
......@@ -81,7 +81,7 @@ class Task {
return runner.getAbsolutePath()
} else {
def versionName = sh (
def versionName = steps.sh (
script: 'grep "\\$branch" moodle/version.php | sed "s/^[^\']*\'\\([^\']*\\).*\$/\\1/"',
returnStdout: true
).trim()
......
......@@ -50,7 +50,7 @@ def call(org.moodle.ci.Task task) {
stage("Run Task") {
steps {
sh task.getPathToRunner(env)
sh task.getPathToRunner(env, steps)
}
}
......
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