diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 8072489..0000000 --- a/.travis.yml +++ /dev/null @@ -1,10 +0,0 @@ -cache: - directories: - - $HOME/.m2 -jdk: -- openjdk8 -language: java -script: ./mvnw --fail-at-end --update-snapshots clean install -notifications: - slack: - secure: oba1C58doySmrOhh1vFxccgp9JCQi1cNBKhC0YD5I9uk44eXAsOs8GjIs3wqfReKkSf4e9N8jRpbQWoIayQV/qRvkRJnpxuFv5q3Rtr4+S50Ie2IfrghRpphV7uyL3ktswyPHLTLVNxEW1cext9ZDOMb3S+Z4lwCz0gBjf9cZWGzBIsj6Wb0cr31Jo/xKuvBTwxRdTJGh20CvHXpXYeB/dNbY5BmlDP1Ys8dtP0/NrWTJ5/MG2BubaQ/xuUA+aw573XaYA+3t6vDVEfedNcDO8oNcQgp9zpp3p5Z4pipqKGyrqQAp/xnRt73TGRl6XQ9t/ZGdOSz6vSHaaVhtBKkOpoW8DxQ9nq9GWOK7R9r1ok919blzSfZvjJ5jUVM931XaUhIfWbv1f/UGgFRJSJ/G81s27trd0GCYXPXyq1tFVQBp/CxrBwuOfPtE7rTwFaFM4eo6tgwkbHFW4ZXJWk5MXWhkgRM7Frqq5mMophz6YT2suuEYgYVM7f0l2lXAC/O7PkobMzbeDRiMwREx5KBKGd6GFpmKfUua8b75nOcn9UB4aDtdCb70LwBCVotvQT0rKk1zxLp28iNilk1HQubfOG9S5gjjuqsXPfHgsmzA2CnQbj1yjansGXA8uq0NBOBUo2lvopsXGBw0tJNj53DY5sxd3jXaNIYQjsGT2knHp0= diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..bafafc8 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,44 @@ +pipeline { + agent none + + triggers { + pollSCM 'H/10 * * * *' + } + + options { + disableConcurrentBuilds() + buildDiscarder(logRotator(numToKeepStr: '14')) + } + + stages { + stage("test: baseline (jdk8)") { + agent { + docker { + image 'adoptopenjdk/openjdk8:latest' + args '-v $HOME/.m2:/tmp/jenkins-home/.m2' + } + } + options { timeout(time: 30, unit: 'MINUTES') } + steps { + sh 'test/run.sh' + } + } + + } + + post { + changed { + script { + slackSend( + color: (currentBuild.currentResult == 'SUCCESS') ? 'good' : 'danger', + channel: '#sagan-content', + message: "${currentBuild.fullDisplayName} - `${currentBuild.currentResult}`\n${env.BUILD_URL}") + emailext( + subject: "[${currentBuild.fullDisplayName}] ${currentBuild.currentResult}", + mimeType: 'text/html', + recipientProviders: [[$class: 'CulpritsRecipientProvider'], [$class: 'RequesterRecipientProvider']], + body: "${currentBuild.fullDisplayName} is reported as ${currentBuild.currentResult}") + } + } + } +}