r-builds/Jenkinsfile
2019-10-31 09:56:31 -04:00

36 lines
648 B
Groovy

pipeline {
agent none
environment {
HOME = "."
}
options {
ansiColor('xterm')
}
stages {
stage('build images') {
agent { label 'docker-4x' }
steps {
sh 'make docker-build'
}
}
stage('push images') {
agent { label 'docker-4x' }
when {
branch 'master'
}
steps {
sh 'make docker-push'
}
}
stage('deploy') {
agent none
when {
branch 'master'
}
steps {
build(job: 'hostedapps/deploy/r-builds', wait: true,
parameters: [string(name: 'ENVIRONMENT', value: 'staging')])
}
}
}
}