This is an automated email from the ASF dual-hosted git repository. wohali pushed a commit to branch jenkins-jenkins in repository https://gitbox.apache.org/repos/asf/couchdb-documentation.git
commit 098eca4f291f3fa7edd8786ec6b055d96c0e0049 Author: Joan Touzet <[email protected]> AuthorDate: Wed Jan 29 14:22:13 2020 -0500 New Jenkinsfile for faster testing --- Jenkinsfile | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..9dae139 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,59 @@ +pipeline { + + agent none + + environment { + GIT_COMMITTER_NAME = 'Jenkins User' + GIT_COMMITTER_EMAIL = '[email protected]' + DOCKER_IMAGE = 'couchdbdev/debian-buster-erlang-all:latest' + DOCKER_ARGS = '-e npm_config_cache=npm-cache -e HOME=. -v=/etc/passwd:/etc/passwd -v /etc/group:/etc/group' + } + + options { + buildDiscarder(logRotator(numToKeepStr: '10', artifactNumToKeepStr: '10')) + // This fails the build immediately if any parallel step fails + parallelsAlwaysFailFast() + preserveStashes(buildCount: 10) + timeout(time: 30, unit: 'MINUTES') + timestamps() + } + + stages { + stage('Test') { + matrix { + axes { + axis { + name 'TARGET' + values "html", "man", "check" + } + } + stages { + stage('Test') { + agent { + docker { + image "${DOCKER_IMAGE}" + label 'docker' + args "${DOCKER_ARGS}" + alwaysPull true + } + } + options { + timeout(time: 90, unit: 'MINUTES') + } + steps { + sh ''' + make ${TARGET} + ''' + } + post { + cleanup { + // UGH see https://issues.jenkins-ci.org/browse/JENKINS-41894 + sh 'rm -rf ${WORKSPACE}/*' + } + } + } // stage + } // stages + } // matrix + } // stage "Test" + } // stages +} // pipeline
