shift deploy to separate job

This commit is contained in:
Steve Nolen 2019-10-31 09:56:31 -04:00
commit 0016ba2f4b

12
Jenkinsfile vendored
View file

@ -23,19 +23,13 @@ pipeline {
}
}
stage('deploy') {
agent {
dockerfile {
dir 'jenkins'
label 'docker-4x'
additionalBuildArgs '--build-arg DOCKER_GID=$(stat -c %g /var/run/docker.sock) --build-arg JENKINS_UID=$(id -u jenkins) --build-arg JENKINS_GID=$(id -g jenkins)'
args '-v /var/run/docker.sock:/var/run/docker.sock --group-add docker'
}
}
agent none
when {
branch 'master'
}
steps {
sh 'make serverless-deploy.production'
build(job: 'hostedapps/deploy/r-builds', wait: true,
parameters: [string(name: 'ENVIRONMENT', value: 'staging')])
}
}
}