separate out success and failure tasks
parent
c3d2fb32e2
commit
f75f0378bf
|
|
@ -39,8 +39,15 @@ pipeline {
|
||||||
reportFiles: 'cucumber.html, index.html',
|
reportFiles: 'cucumber.html, index.html',
|
||||||
reportName: 'Test Results',
|
reportName: 'Test Results',
|
||||||
reportTitles: 'Cucumber Results, Test Coverage'])
|
reportTitles: 'Cucumber Results, Test Coverage'])
|
||||||
mattermostSend channel: 'git-messages', color: 'good', message: "[${JOB_NAME}](${JOB_URL}) [#${BUILD_NUMBER}](${BUILD_URL}) ([Gitea](${GIT_URL})) ${GIT_COMMIT}", text: 'Build Finished Successfully', icon: 'https://jenkins.dev.desnudopenguino.com/static/be5e4e89/apple-touch-icon.png'
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
post {
|
||||||
|
success {
|
||||||
|
mattermostSend channel: 'git-messages', color: 'good', message: "[${JOB_NAME}](${JOB_URL}) [#${BUILD_NUMBER}](${BUILD_URL}) ([Gitea](${GIT_URL}))", text: 'Build Finished Successfully'
|
||||||
|
}
|
||||||
|
failure {
|
||||||
|
mattermostSend channel: 'git-messages', color: 'danger', message: "[${JOB_NAME}](${JOB_URL}) [#${BUILD_NUMBER}](${BUILD_URL}) ([Gitea](${GIT_URL}))", text: "Build Failed"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue