jenkinsfile

This commit is contained in:
Emmanuel Cazenave 2018-03-14 17:33:10 +01:00
commit 17c784aeca
1 changed files with 27 additions and 0 deletions

27
Jenkinsfile vendored Normal file
View File

@ -0,0 +1,27 @@
pipeline {
agent any
triggers { pollSCM('H/2 * * * *') }
stages{
stage('unit test'){
steps{
sh """
echo "Hey"
"""
}
}
}
post {
always {
script {
// Hack to have the 'jenkins build back to normal' mail sent
if (currentBuild.result == null) {
currentBuild.result = 'SUCCESS'
}
step([$class: 'Mailer',
notifyEveryUnstableBuild: true,
recipients: emailextrecipients([[$class: 'CulpritsRecipientProvider'],
[$class: 'RequesterRecipientProvider']])])
}
}
}
}