r-builds/Jenkinsfile
2021-02-16 10:19:30 -05:00

36 lines
646 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: 'r-builds/deploy-r-builds', wait: true,
parameters: [string(name: 'ENVIRONMENT', value: 'staging')])
}
}
}
}