From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6458964015139782656 X-Received: by 10.223.163.143 with SMTP id l15mr168011wrb.8.1503844748539; Sun, 27 Aug 2017 07:39:08 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 10.28.216.78 with SMTP id p75ls876409wmg.15.canary-gmail; Sun, 27 Aug 2017 07:39:08 -0700 (PDT) X-Received: by 10.28.199.76 with SMTP id x73mr298779wmf.30.1503844748278; Sun, 27 Aug 2017 07:39:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1503844748; cv=none; d=google.com; s=arc-20160816; b=JgE9puS3R86hbaWpf+4IPIOpGlPfmwvOcupnkuD4mfYq1ZeRfMlm/KHtvJ3b3durkQ yMKHlo4dmWqF9jdqHp+dRZHdiFY7JwNOIHT+RUfXAhG+2f4IYBdI1irWhLrPbs9e0G/w w6/olc8yY9m4P7kFbfl5/QA0ZgKEcV9t7nc8nMw3NA1lPRx5aCk9JA/yqFsz7pBHU1U5 p58//wbGPASLI2B4mQmux2QWW49VBhfQJDpTMH0yECpPth3AVKeBKTCpBHiIRthUhWA4 WzJVqNo1dhM2Wj2vhG8OIoLfvhpNkkZNxu8qZHTkETV40MK3a7dwfZoFNOZxSCxNcANe 5GIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=zGmYQT5d5ggwDXHnfmcISQv2/yrsDWOIVeNmfCzwmAs=; b=nnoaWlhB1+3GAdF0XCnVt09hbTpE2FtQ1+DCb9+Dynqx0LtZODr7IxpvicQjMcwQez dLrLABuOMxGVNA0c7lMUiD31OX2K9NgGcV/xivprfqRhIN/+KjBSasgujSuJRJGo8YhP lWj/lpAG2LRaTWXnhj8/wk/KL7lYw2/0P9THCOm3OqYs/8W1Ebmr69xrFLcj8Pk0KcCE rVbkDBz8woRDiJk61IvYzveci73lThqRWYzUeJRrupDgYTlW30VMFvqAgXSfnFUMIyqp aW351y3TxPLKqYe3XPlCX/f1Qn+rqL+UEgUsY4HDISCByOOYeGknDFPPdBVprsdUBPQu Cc4w== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: best guess record for domain of asmirnov@ilbers.de designates 85.214.62.211 as permitted sender) smtp.mailfrom=asmirnov@ilbers.de Return-Path: Received: from aqmola.ilbers.de (aqmola.ilbers.de. [85.214.62.211]) by gmr-mx.google.com with ESMTPS id 132si434615wmn.6.2017.08.27.07.39.08 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 27 Aug 2017 07:39:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of asmirnov@ilbers.de designates 85.214.62.211 as permitted sender) client-ip=85.214.62.211; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: best guess record for domain of asmirnov@ilbers.de designates 85.214.62.211 as permitted sender) smtp.mailfrom=asmirnov@ilbers.de Received: from localhost.localdomain ([188.227.110.165]) (authenticated bits=0) by aqmola.ilbers.de (8.14.4/8.14.4/Debian-4+deb7u1) with ESMTP id v7REcnP6006356 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 27 Aug 2017 16:38:59 +0200 From: Alexander Smirnov To: isar-users@googlegroups.com Cc: Alexander Smirnov Subject: [PATCH 4/5] scripts/ci_build: Update build script Date: Sun, 27 Aug 2017 17:38:39 +0300 Message-Id: <20170827143840.12436-5-asmirnov@ilbers.de> X-Mailer: git-send-email 2.9.4 In-Reply-To: <20170827143840.12436-1-asmirnov@ilbers.de> References: <20170827143840.12436-1-asmirnov@ilbers.de> X-TUID: jOBaQdsU1ydr Rework the build script for Jenkins CI. Signed-off-by: Alexander Smirnov --- scripts/ci_build.sh | 46 +++++++++++++++++++++++++--------------------- 1 file changed, 25 insertions(+), 21 deletions(-) diff --git a/scripts/ci_build.sh b/scripts/ci_build.sh index 3deadbf..2cacdf1 100755 --- a/scripts/ci_build.sh +++ b/scripts/ci_build.sh @@ -1,29 +1,33 @@ -# Script for GitLab runner +# Script for Jenkins build # # Alexander Smirnov -# Copyright (c) 2016 ilbers GmbH +# Copyright (c) 2016-2017 ilbers GmbH #!/bin/sh # Export $PATH to use 'parted' tool export PATH=$PATH:/sbin -WORKSPACE=`pwd` - -. isar-init-build-env build -bitbake multiconfig:qemuarm:isar-image-base multiconfig:rpi:isar-image-base multiconfig:qemuarm:isar-image-debug multiconfig:rpi:isar-image-debug - -cd $WORKSPACE -mkdir images -cd images - -# Get QEMU image -cp ../build/tmp/deploy/images/isar-image-base-qemuarm.ext4.img . -gzip -9 isar-image-base-qemuarm.ext4.img - -# Get RPi SD card image -cp ../build/tmp/deploy/images/isar-image-base.rpi-sdimg . -gzip -9 isar-image-base.rpi-sdimg - -cd .. -sudo rm -rf build +# Get parameters from the command line +WORKSPACE=$1 +GIT_COMMIT=$2 + +# Go to Isar root +cd $(dirname $0)/.. + +# Setup build folder for current revision +if [ ! -d /build/$WORKSPACE/$GIT_COMMIT ]; then + mkdir -p /build/$WORKSPACE/$GIT_COMMIT +fi +source isar-init-build-env /build/$WORKSPACE/$GIT_COMMIT + +# Start build for all possible configurations +bitbake \ + multiconfig:qemuarm-wheezy:isar-image-base \ + multiconfig:qemuarm-jessie:isar-image-base \ + multiconfig:qemuarm-stretch:isar-image-base \ + multiconfig:qemui386-jessie:isar-image-base \ + multiconfig:qemui386-stretch:isar-image-base \ + multiconfig:qemuamd64-jessie:isar-image-base \ + multiconfig:qemuamd64-stretch:isar-image-base \ + multiconfig:rpi-jessie:isar-image-base -- 2.1.4