Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pipeline
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Andrew Nicols
pipeline
Commits
3cf3d148
Commit
3cf3d148
authored
Dec 17, 2017
by
Andrew Nicols
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Task: More runner path improvements
parent
0792b7ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
src/org/moodle/ci/Task.groovy
src/org/moodle/ci/Task.groovy
+6
-4
No files found.
src/org/moodle/ci/Task.groovy
View file @
3cf3d148
...
...
@@ -74,9 +74,9 @@ class Task {
return
pathToRunner
}
else
if
(
moodleVersion
)
{
runner
=
"${script.env.
PATHTORUNNER}
/${moodleVersion.name}/run.sh"
runner
=
"${script.env.
HOME}/scripts/runner
/${moodleVersion.name}/run.sh"
if
(!
fileExists
(
runner
))
{
runner
=
"${script.env.
PATHTORUNNER}
/master/run.sh"
runner
=
"${script.env.
HOME}/scripts/runner
/master/run.sh"
}
return
runner
...
...
@@ -85,11 +85,13 @@ class Task {
script:
'grep "\\$branch" moodle/version.php | sed "s/^[^\']*\'\\([^\']*\\).*\$/\\1/"'
,
returnStdout:
true
).
trim
()
runner
=
"${script.env.
PATHTORUNNER}
/${versionName}/run.sh"
runner
=
"${script.env.
HOME}/scripts/runner
/${versionName}/run.sh"
if
(!
fileExists
(
runner
))
{
runner
=
"${script.env.
PATHTORUNNER}
/master/run.sh"
runner
=
"${script.env.
HOME}/scripts/runner
/master/run.sh"
}
return
runner
}
throw
new
Exception
(
"Unable to determine path to script runner. Either a moodleVersion or a pathToRunner must be provided"
)
...
...
Write
Preview
Markdown
is supported
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