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.
44 lines
787 B
Groovy
44 lines
787 B
Groovy
#!/usr/bin/env groovy
|
|
|
|
pipeline {
|
|
|
|
agent any
|
|
|
|
stages{
|
|
stage('checkout VCS'){
|
|
steps{
|
|
checkout scm
|
|
}
|
|
}
|
|
|
|
stage('compile'){
|
|
steps{
|
|
sh 'echo "fake-compiling..."'
|
|
}
|
|
}
|
|
|
|
stage('deploySONAR'){
|
|
steps{
|
|
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")
|
|
}
|
|
}
|
|
}
|
|
}
|