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
a5334c66
Commit
a5334c66
authored
Dec 18, 2017
by
Andrew Nicols
Browse files
Task: sh comes from Steps
parent
0c5dc6fd
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/org/moodle/ci/Task.groovy
View file @
a5334c66
...
...
@@ -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
()
...
...
vars/runTask.groovy
View file @
a5334c66
...
...
@@ -50,7 +50,7 @@ def call(org.moodle.ci.Task task) {
stage
(
"Run Task"
)
{
steps
{
sh
task
.
getPathToRunner
(
env
)
sh
task
.
getPathToRunner
(
env
,
steps
)
}
}
...
...
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