diff --git a/Jenkinsfile b/Jenkinsfile index 65ee040d0a501f557101d3a2fb28ec095bad8025..e086bde0f0894d7bc14a0422ce8c43fdacc548fb 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -14,24 +14,25 @@ node('master') { docker_image.inside { gitlabBuilds(builds: ["build", "test"]) { - stage("build") { - gitlabCommitStatus("build") { - try { - sh """ - ls -al - sh do_an_error.sh - """ - } catch (e) { - sendMail("Build Failed") - throw e - } - } - } - - stage("test") { - gitlabCommitStatus("test") { - // your test steps - } + stage("build") { + gitlabCommitStatus("build") { + try { + sh """ + ls -al + sh do_an_error.sh + """ + } catch (e) { + sendMail("Build Failed") + throw e + } + } + } + + stage("test") { + gitlabCommitStatus("test") { + // your test steps + } + } } } }