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
7708f8b2
Commit
7708f8b2
authored
Dec 13, 2017
by
Andrew Nicols
Browse files
Stages => Steps
parent
9fe3e947
Changes
1
Hide whitespace changes
Inline
Side-by-side
vars/runTask.groovy
View file @
7708f8b2
...
...
@@ -6,52 +6,57 @@ def call(String branch, String repo, String task, String phpversion, String data
stages
{
stage
(
"Git Checkout"
)
{
checkout
(
[
$class
:
'GitSCM'
,
branches:
[
[
name:
"*/${config.branch}"
]
],
doGenerateSubmoduleConfigurations:
false
,
extensions:
[
[
$class
:
'CloneOption'
,
depth:
0
,
noTags:
false
,
reference:
"${env.HOME}/cache/integration.git"
,
shallow:
false
steps
{
checkout
(
[
$class
:
'GitSCM'
,
branches:
[
[
name:
"*/${config.branch}"
]
],
[
$class
:
'RelativeTargetDirectory'
,
relativeTargetDir:
'moodle'
]
],
submoduleCfg:
[],
userRemoteConfigs:
[
[
url:
"${config.repo}"
doGenerateSubmoduleConfigurations:
false
,
extensions:
[
[
$class
:
'CloneOption'
,
depth:
0
,
noTags:
false
,
reference:
"${env.HOME}/cache/integration.git"
,
shallow:
false
],
[
$class
:
'RelativeTargetDirectory'
,
relativeTargetDir:
'moodle'
]
],
submoduleCfg:
[],
userRemoteConfigs:
[
[
url:
"${config.repo}"
]
]
]
]
)
)
}
}
stage
(
"Run ${config.task}"
)
{
withEnv
([
"PHP_VERSION=${config.phpversion}"
,
"DBTYPE=${config.database}"
,
"TASK=${config.task}"
])
{
environment
{
PHP_VERSION
=
"${config.phpversion}"
DBTYPE
=
"${config.database}"
TASK
=
"${config.task}"
}
steps
{
sh
'$HOME/scripts/runner/master/run.sh'
}
}
stage
(
"Post"
)
{
junit
allowEmptyResults:
true
,
testResults:
'${env.BUILD_ID}/*.junit/*.xml,${env.BUILD_ID}/*.junit'
archiveArtifacts
allowEmptyArchive:
true
,
artifacts:
'${env.BUILD_ID}/**'
cleanWs
deleteDirs:
true
,
notFailBuild:
true
steps
{
junit
allowEmptyResults:
true
,
testResults:
'${env.BUILD_ID}/*.junit/*.xml,${env.BUILD_ID}/*.junit'
archiveArtifacts
allowEmptyArchive:
true
,
artifacts:
'${env.BUILD_ID}/**'
cleanWs
deleteDirs:
true
,
notFailBuild:
true
}
}
}
}
...
...
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