From 17c784aeca4cef5664a0a36e35143a33f3080063 Mon Sep 17 00:00:00 2001 From: Emmanuel Cazenave Date: Wed, 14 Mar 2018 17:33:10 +0100 Subject: [PATCH] jenkinsfile --- Jenkinsfile | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..b02dec2 --- /dev/null +++ b/Jenkinsfile @@ -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']])]) + } + } + } +}