Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 47 lines (38 sloc) 906 Bytes
#!/usr/bin/env groovy
pipeline {
agent any
options {
disableConcurrentBuilds()
buildDiscarder(logRotator(numToKeepStr: '10'))
}
stages {
stage("Announcement") {
steps {
sh "pipeline-notification STARTED SUCCESS"
}
}
stage("Build") {
steps {
sh "make build"
}
}
stage("Deploy") {
when {
branch "production"
}
steps {
sshagent(["f4f6a0a8-c2ae-4f7e-9bf1-869831034fad"]) {
sh "ansible-playbook -l medley ansible/install.yml"
}
}
}
}
post {
success {
sh "pipeline-notification FINALIZED SUCCESS"
}
failure {
sh "pipeline-notification FINALIZED FAILURE"
}
}
}