You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by wo...@apache.org on 2020/01/29 19:22:37 UTC
[couchdb-documentation] branch jenkins-jenkins created (now c48ac35)
This is an automated email from the ASF dual-hosted git repository.
wohali pushed a change to branch jenkins-jenkins
in repository https://gitbox.apache.org/repos/asf/couchdb-documentation.git.
at c48ac35 New Jenkinsfile for faster testing
This branch includes the following new commits:
new c48ac35 New Jenkinsfile for faster testing
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[couchdb-documentation] 01/01: New Jenkinsfile for faster testing
Posted by wo...@apache.org.
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 c48ac35e6d8be0069f9ad12ecd8466441f1bec10
Author: Joan Touzet <wo...@atypical.net>
AuthorDate: Wed Jan 29 14:22:13 2020 -0500
New Jenkinsfile for faster testing
---
Jenkinsfile | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 57 insertions(+)
diff --git a/Jenkinsfile b/Jenkinsfile
new file mode 100644
index 0000000..4002125
--- /dev/null
+++ b/Jenkinsfile
@@ -0,0 +1,57 @@
+pipeline {
+
+ agent none
+
+ GIT_COMMITTER_NAME = 'Jenkins User'
+ GIT_COMMITTER_EMAIL = 'couchdb@apache.org'
+ 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