Commit f3b8ea88 authored by Arian's avatar Arian
Browse files

Use blocks for stages

parent 7036daf2
Pipeline #248 passed with stage
in 0 seconds
......@@ -2,28 +2,31 @@ properties([[$class: 'GitLabConnectionProperty', gitLabConnection: 'gitlab']])
node {
stage "checkout"
checkout scm
stage ("checkout") {
checkout scm
}
stage "Build"
gitlabCommitStatus("build") {
sh 'echo foo > foo'
sh 'ls'
sh 'ls coverage'
sh 'ls reports'
stage ("Build") {
gitlabCommitStatus("build") {
sh 'echo foo > foo'
sh 'ls'
sh 'ls coverage'
sh 'ls reports'
}
}
stage "test"
gitlabCommitStatus("test") {
sh 'cat foo'
archiveArtifacts 'foo'
publishHTML(target: [
allowMissing: true,
alwaysLinkToLastBuild: true,
keepAll: true,
reportDir: 'coverage',
reportFiles: 'index.html',
reportName: 'Code Coverage'
])
stage ("test") {
gitlabCommitStatus("test") {
sh 'cat foo'
archiveArtifacts 'foo'
publishHTML(target: [
allowMissing: true,
alwaysLinkToLastBuild: true,
keepAll: true,
reportDir: 'coverage',
reportFiles: 'index.html',
reportName: 'Code Coverage'
])
}
}
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment