36 lines
648 B
Groovy
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')])
|
|
}
|
|
}
|
|
}
|
|
}
|