Skip to content
GitLab
Menu
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
79b941ae
Commit
79b941ae
authored
Dec 18, 2017
by
Andrew Nicols
Browse files
Task: Use absolute path instead of name
parent
dac26f13
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/org/moodle/ci/Task.groovy
View file @
79b941ae
...
...
@@ -74,14 +74,14 @@ class Task {
throw
new
Exception
(
"Unable to find job runner at ${pathToRunner}"
)
}
return
runner
.
get
Name
()
return
runner
.
get
AbsolutePath
()
}
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
.
get
Name
()
return
runner
.
get
AbsolutePath
()
}
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
.
get
Name
()
return
runner
.
get
AbsolutePath
()
}
throw
new
Exception
(
"Unable to determine path to script runner."
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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