You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8008135/Jenkinsfile

44 lines
834 B
Plaintext

#!/usr/bin/env groovy
pipeline {
5 years ago
agent any
5 years ago
stages{
stage('checkout VCS'){
steps{
checkout scm
}
5 years ago
}
5 years ago
stage('compile'){
5 years ago
steps{
sh 'echo "fake-compiling..."'
}
5 years ago
}
5 years ago
stage('deploySONAR'){
5 years ago
steps{
5 years ago
sh '/var/jenkins_home/sonar-scanner-4.2.0.1873-linux/bin/sonar-scanner'
5 years ago
}
5 years ago
}
}
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")
}
}
}
}