Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Andrew Lyons
pipeline
Commits
3158d01e
Commit
3158d01e
authored
Dec 17, 2017
by
Andrew Nicols
Browse files
runTaks: Define runner
parent
3cf3d148
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/org/moodle/ci/Task.groovy
View file @
3158d01e
...
...
@@ -74,18 +74,18 @@ class Task {
return
pathToRunner
}
else
if
(
moodleVersion
)
{
runner
=
"${script.env.HOME}/scripts/runner/${moodleVersion.name}/run.sh"
def
runner
=
"${script.env.HOME}/scripts/runner/${moodleVersion.name}/run.sh"
if
(!
fileExists
(
runner
))
{
runner
=
"${script.env.HOME}/scripts/runner/master/run.sh"
}
return
runner
}
else
{
versionName
=
sh
(
def
versionName
=
sh
(
script:
'grep "\\$branch" moodle/version.php | sed "s/^[^\']*\'\\([^\']*\\).*\$/\\1/"'
,
returnStdout:
true
).
trim
()
runner
=
"${script.env.HOME}/scripts/runner/${versionName}/run.sh"
def
runner
=
"${script.env.HOME}/scripts/runner/${versionName}/run.sh"
if
(!
fileExists
(
runner
))
{
runner
=
"${script.env.HOME}/scripts/runner/master/run.sh"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment