[ARVADOS-DEV] updated: 310db12be5e8825d11e91a0abc30b63548ec4757

git at public.curoverse.com git at public.curoverse.com
Fri Jul 24 12:08:29 EDT 2015


Summary of changes:
 jenkins/run-build-packages-all-targets.sh | 32 +++++++++++++++++++++++++++++++
 jenkins/run-build-packages.sh             |  2 +-
 2 files changed, 33 insertions(+), 1 deletion(-)
 create mode 100755 jenkins/run-build-packages-all-targets.sh

       via  310db12be5e8825d11e91a0abc30b63548ec4757 (commit)
       via  4886a88b72e5faef32780bc2fdd60ec5c2d7f16d (commit)
      from  c0e1dbb244f0cf8d838ebd9296e797a0a2f23fdf (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 310db12be5e8825d11e91a0abc30b63548ec4757
Merge: c0e1dbb 4886a88
Author: Brett Smith <brett at curoverse.com>
Date:   Fri Jul 24 12:08:09 2015 -0400

    Merge branch '6682-use-docker-build-cmd-wip'
    
    Refs #6682.  Closes #6741.


commit 4886a88b72e5faef32780bc2fdd60ec5c2d7f16d
Author: Brett Smith <brett at curoverse.com>
Date:   Wed Jul 22 22:21:59 2015 -0400

    6682: Add script to orchestrate builds for multiple targets.
    
    Now that we can build packages for multiple targets, it's nice to have
    a one-shot script to build them all.  This does that.

diff --git a/jenkins/run-build-packages-all-targets.sh b/jenkins/run-build-packages-all-targets.sh
new file mode 100755
index 0000000..a1052a9
--- /dev/null
+++ b/jenkins/run-build-packages-all-targets.sh
@@ -0,0 +1,32 @@
+#!/bin/bash
+
+# Orchestrate run-build-packages.sh for every target.
+
+set -e
+
+FINAL_EXITCODE=0
+JENKINS_DIR=$(dirname "$(readlink -e "$0")")
+
+run_docker() {
+    local tag=$1; shift
+    if docker run -v "$JENKINS_DIR:/jenkins" -v "$WORKSPACE:/arvados" \
+          --env ARVADOS_DEBUG=1 "arvados/build:$tag"; then
+        # Success - nothing more to do.
+        true
+    else
+        FINAL_EXITCODE=$?
+        echo "ERROR: $tag build failed with exit status $FINAL_EXITCODE." >&2
+    fi
+}
+
+# In case it's needed, build the containers. This costs just a few
+# seconds when the containers already exist, so it's not a big deal to
+# do it on each run.
+cd "$JENKINS_DIR/dockerfiles"
+time ./build-all-build-containers.sh
+
+for dockerfile_path in $(find -name Dockerfile); do
+    run_docker "$(basename $(dirname "$dockerfile_path"))"
+done
+
+exit $FINAL_EXITCODE
diff --git a/jenkins/run-build-packages.sh b/jenkins/run-build-packages.sh
index fc12cb4..b8e58d7 100755
--- a/jenkins/run-build-packages.sh
+++ b/jenkins/run-build-packages.sh
@@ -21,7 +21,7 @@ WORKSPACE=path         Path to the Arvados source tree to build packages from
 EOF
 
 EXITCODE=0
-DEBUG=0
+DEBUG=${ARVADOS_DEBUG:-0}
 BUILD_BUNDLE_PACKAGES=0
 TARGET=debian7
 

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list