aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Lyon <christophe.lyon@linaro.org>2017-02-03 09:23:26 +0000
committerChristophe Lyon <christophe.lyon@linaro.org>2017-02-03 09:23:26 +0000
commit33e73a9bc173701d9a97f73fd2b13cc9a5a785e4 (patch)
treeca024e845fb436866f46adcd489a18441cc40289
parent28279e224f7a4a59ad21d2b8b72290247b01911c (diff)
tcwg-buildapp: Start docker via script rather than via Jenkins.
Change-Id: I95583f78852bff89fb504c1482b8d4f0a21a7f88
-rw-r--r--tcwg-buildapp.yaml25
1 files changed, 23 insertions, 2 deletions
diff --git a/tcwg-buildapp.yaml b/tcwg-buildapp.yaml
index 2bf8beae72..5eb4231e4d 100644
--- a/tcwg-buildapp.yaml
+++ b/tcwg-buildapp.yaml
@@ -26,6 +26,10 @@
name: target_list
default: 'arm-linux-gnueabihf aarch64-linux-gnu'
description: 'List of targets to use'
+ - string:
+ name: scripts_branch
+ default: master
+ description: 'Jenkins-scripts revision to use'
disabled: false
node: tcwg-x86_64-cam
child-workspace: $target/$app
@@ -41,7 +45,7 @@
type: slave
name: label
values:
- - docker-trusty-amd64-tcwg
+ - tcwg-x86_64-cam
- axis:
type: dynamic
name: app
@@ -69,7 +73,24 @@
- shell: |
#!/bin/bash
set -ex
- ./tcwg-buildapp.sh ${toolchain_url} ${app} ${target}
+
+ git clone -b $scripts_branch --depth 1 https://git-us.linaro.org/toolchain/jenkins-scripts
+ case ${label} in
+ tcwg-x86_64-cam) host_arch=amd64 ;;
+ tcwg-x86_32-build) host_arch=i386 ;;
+ tcwg-tx1-build) host_arch=arm64 ;;
+ tcwg-tx1_32-build) host_arch=armhf ;;
+ tcwg-tk1_32-build) host_arch=armhf ;;
+ *) echo "ERROR: Unsupported slave: $slave"; exit 1 ;;
+ esac
+
+ host=$(./jenkins-scripts/nodename2hostname.sh $NODE_NAME)
+ bash -x ./jenkins-scripts/start-container-docker.sh ${host_arch} trusty ${host} > container.sh
+
+ # Define session_host and session_port, install trap handler
+ . ./container.sh
+
+ ${CONTAINER} ./tcwg-buildapp.sh ${toolchain_url} ${app} ${target}
publishers:
- email:
recipients: 'christophe.lyon@linaro.org'