8008135/Jenkinsfile

37 lines
662 B
Plaintext
Raw Normal View History

2020-01-30 17:02:13 +01:00
#!/usr/bin/env groovy
pipeline {
stages {
stage ('checkout VCS') {
steps {
checkout scm
}
stage ('compile') {
sh 'make'
}
stage ('deploySONAR') {
sh 'sonar-scanner'
}
}
post {
unstable {
script {
notifier.sendMail("CI Build Job ${env.JOB_NAME} [${env.BUILD_NUMBER}] is unstable, please fix it in the near future", "**/*.log")
}
}
failure {
script {
notifier.sendMail("Error while run CI Build Job ${env.JOB_NAME} [${env.BUILD_NUMBER}]", "**/*.log")
}
}
fixed {
script {
notifier.sendMail("CI Build Job ${env.JOB_NAME} [${env.BUILD_NUMBER}] is stable again :-)", "**/*.log")
}
}
}
}