summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoan Touzet <joant@atypical.net>2017-07-30 00:24:58 -0400
committerJoan Touzet <joant@atypical.net>2017-07-30 02:15:14 -0400
commit7f176787cfa4dd4c1824504589ea126db8218c37 (patch)
tree120ad00f84ab4767c113dec15f3a741e977b0b3e
parent047c6254e77133d6a85c389cddb12569bfc849f5 (diff)
downloadcouchdb-7f176787cfa4dd4c1824504589ea126db8218c37.tar.gz
Bump image version in Jenkinsfile
-rw-r--r--Jenkinsfile35
1 files changed, 19 insertions, 16 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
index a202747ed..c2740f0de 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -29,27 +29,30 @@ pipeline {
stages {
stage('Build') {
agent {
- docker {
+ // Cannot use docker agent type because image will not be pulled fresh
+ // each time. Instead, manually insert docker pull then run with the
+ // the docker image.
+ node {
label 'couchdbtest'
- // This image has the oldest Erlang we support, 16B03
- image 'couchdbdev/ubuntu-14.04-erlang-default'
- // https://github.com/jenkins-infra/jenkins.io/blob/master/Jenkinsfile#64
- // We need the jenkins user mapped inside of the image
- // npm config cache below is required because /home/jenkins doesn't
- // ACTUALLY exist in the image
- // We need root here to clean up after previous runs where we used to do everything as root
- args '-e npm_config_cache=npm-cache -e HOME=. -v=/etc/passwd:/etc/passwd -v /etc/group:/etc/group'
}
}
steps {
+ // This image has the oldest Erlang we support, 16B03
+ sh 'docker pull couchdbdev/ubuntu-14.04-erlang-default:latest'
timeout(time: 15, unit: "MINUTES") {
- sh '''
- set
- rm -rf apache-couchdb-*
- ./configure --with-curl
- make dist
- chmod -R a+w * .
- '''
+ // https://github.com/jenkins-infra/jenkins.io/blob/master/Jenkinsfile#64
+ // We need the jenkins user mapped inside of the image
+ // npm config cache below is required because /home/jenkins doesn't
+ // ACTUALLY exist in the image
+ withDockerContainer(image: 'couchdbdev/ubuntu-14.04-erlang-default', args: '-e npm_config_cache=npm-cache -e HOME=. -v=/etc/passwd:/etc/passwd -v /etc/group:/etc/group') {
+ sh '''
+ set
+ rm -rf apache-couchdb-*
+ ./configure --with-curl
+ make dist
+ chmod -R a+w * .
+ '''
+ }
}
}
post {