You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ko...@apache.org on 2022/01/18 04:41:34 UTC
[couchdb] branch jenkins-dynamic-matrix updated (0cbb71c -> c6f53cf)
This is an automated email from the ASF dual-hosted git repository.
kocolosk pushed a change to branch jenkins-dynamic-matrix
in repository https://gitbox.apache.org/repos/asf/couchdb.git.
from 0cbb71c just to be safe
new e487dcd Fix platform -> PLATFORM env var
new c6f53cf Fix failFast config for scripted pipeline
The 2 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.
Summary of changes:
build-aux/Jenkinsfile.full | 23 +++++++++--------------
1 file changed, 9 insertions(+), 14 deletions(-)
[couchdb] 01/02: Fix platform -> PLATFORM env var
Posted by ko...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
kocolosk pushed a commit to branch jenkins-dynamic-matrix
in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit e487dcddf2cf611ee83bf8e83e1e621e28d3fa93
Author: Adam Kocoloski <ko...@apache.org>
AuthorDate: Mon Jan 17 23:41:08 2022 -0500
Fix platform -> PLATFORM env var
---
build-aux/Jenkinsfile.full | 18 +++++++-----------
1 file changed, 7 insertions(+), 11 deletions(-)
diff --git a/build-aux/Jenkinsfile.full b/build-aux/Jenkinsfile.full
index d92921e..f22dadd 100644
--- a/build-aux/Jenkinsfile.full
+++ b/build-aux/Jenkinsfile.full
@@ -14,19 +14,15 @@
// the License.
unpack = '''
-pwd
-ls -l
-mkdir -p ${COUCHDB_IO_LOG_DIR} ${PLATFORM}
+rm -rf ${PLATFORM}/build
+mkdir -p ${COUCHDB_IO_LOG_DIR} ${PLATFORM}/build
cd ${PLATFORM}
-ls -l
-rm -rf build
-mkdir build
tar -xf ${WORKSPACE}/apache-couchdb-*.tar.gz -C build
mv build/apache-couchdb-* build/couchdb
'''
make_packages = '''
-cd ${platform}
+cd ${PLATFORM}
git clone https://github.com/apache/couchdb-pkg
rm -rf couchdb
mkdir couchdb
@@ -37,10 +33,10 @@ make
'''
cleanup_and_save = '''
-rm -rf ${WORKSPACE}/pkgs/${platform}
-mkdir -p ${WORKSPACE}/pkgs/${platform}
-mv ${WORKSPACE}/${platform}/rpmbuild/RPMS/$(arch)/*rpm ${WORKSPACE}/pkgs/${platform} || true
-mv ${WORKSPACE}/${platform}/couchdb/*.deb ${WORKSPACE}/pkgs/${platform} || true
+rm -rf ${WORKSPACE}/pkgs/${PLATFORM}
+mkdir -p ${WORKSPACE}/pkgs/${PLATFORM}
+mv ${WORKSPACE}/${PLATFORM}/rpmbuild/RPMS/$(arch)/*rpm ${WORKSPACE}/pkgs/${PLATFORM} || true
+mv ${WORKSPACE}/${PLATFORM}/couchdb/*.deb ${WORKSPACE}/pkgs/${PLATFORM} || true
'''
update_qemu = '''
[couchdb] 02/02: Fix failFast config for scripted pipeline
Posted by ko...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
kocolosk pushed a commit to branch jenkins-dynamic-matrix
in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit c6f53cf09e298a2379a301798a847965d5c07baa
Author: Adam Kocoloski <ko...@apache.org>
AuthorDate: Mon Jan 17 23:41:24 2022 -0500
Fix failFast config for scripted pipeline
---
build-aux/Jenkinsfile.full | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/build-aux/Jenkinsfile.full b/build-aux/Jenkinsfile.full
index f22dadd..51642dd 100644
--- a/build-aux/Jenkinsfile.full
+++ b/build-aux/Jenkinsfile.full
@@ -238,7 +238,8 @@ def generateContainerStage(platform) {
}
}
-def parallelStagesMap = meta.collectEntries { key, values ->
+// Including failFast: true in map fails the build immediately if any parallel step fails
+def parallelStagesMap = meta.collectEntries( [failFast: true] ) { key, values ->
if (values.image) {
["${key}": generateContainerStage(key)]
}
@@ -268,8 +269,6 @@ pipeline {
options {
buildDiscarder(logRotator(numToKeepStr: '10', artifactNumToKeepStr: '10'))
- // This fails the build immediately if any parallel step fails
- parallelsAlwaysFailFast()
preserveStashes(buildCount: 10)
timeout(time: 3, unit: 'HOURS')
timestamps()