This is an automated email from the ASF dual-hosted git repository. wohali pushed a commit to branch jenkins-packages-2 in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit 30fc385ae25616128ad314f31e2e70b3d8e0b4b9 Author: Joan Touzet <[email protected]> AuthorDate: Wed Jul 19 03:42:39 2017 -0400 Build repos and push to couchdb-vm2 --- Jenkinsfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 88401b8..ff447c2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -421,7 +421,7 @@ pipeline { // This image has the deb AND rpm repo tools installed in it image 'couchdbdev/debian-8-base' // We need the jenkins user mapped inside of the image - args '-v /etc/passwd:/etc/passwd -v /etc/group:/etc/group' + args '-v /etc/passwd:/etc/passwd -v /etc/group:/etc/group -e HOME=.' label 'ubuntu' } } @@ -439,7 +439,7 @@ pipeline { echo 'Building CentOS repos...' sh ''' cd pkgs/centos6 && createrepo --database . - cd ../centos7 && rm js* && createrepo --database . + cd ../centos7 && rm -f js* && createrepo --database . ''' echo 'rsyncing repos to couchdb-vm2...' sh ''' @@ -452,12 +452,14 @@ pipeline { ''' // cronjob on couchdb-vm2 cleans up old tarballs (keeps latest 10) echo 'rsyncing source tarball to couchdb-vm2...' + sh 'rm -rf *.tar.gz' unstash 'tarball' sh ''' rm -rf $BRANCH_NAME mkdir -p $BRANCH_NAME/source mv apache-couchdb-*.tar.gz $BRANCH_NAME/source rsync -avz -e "ssh -i $KEY" $BRANCH_NAME [email protected]:/var/www/html + rm -rf $BRANCH_NAME couchdb-pkg *.tar.gz ''' deleteDir() } // withCredentials -- To stop receiving notification emails like this one, please contact "[email protected]" <[email protected]>.
