Commit f361b36c authored by Josh Steinberg's avatar Josh Steinberg

edit jenkinsfile

parent 7720d48d
pipeline { pipeline {
agent none agent any
triggers {
pollSCM 'H/10 * * * *'
}
options {
disableConcurrentBuilds()
buildDiscarder(logRotator(numToKeepStr: '14'))
}
stages { stages {
stage("test: baseline (jdk8)") { stage('Git Checkout') {
agent { steps{
docker { echo "BranchName: ${branchName}"
image 'adoptopenjdk/openjdk8:latest' echo "Checking out repository"
args '-v $HOME/.m2:/tmp/jenkins-home/.m2' git branch: "${branchName}", url: "https://gitlab.mynisum.com/jsteinberg/hello-world-spring-boot.git"
} echo "Checkout complete"
} }
options { timeout(time: 30, unit: 'MINUTES') } }
steps { stage("")
sh 'test/run.sh' stage('Test') {
} steps {
} withMaven{
sh './mvnw test'
} }
post { }
changed { post {
script { always{
slackSend( junit 'target/surefire-reports/*.xml'
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: "<a href=\"${env.BUILD_URL}\">${currentBuild.fullDisplayName} is reported as ${currentBuild.currentResult}</a>")
}
}
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment