aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYibo Cai <yibo.cai@linaro.org>2017-12-05 17:26:45 +0800
committerRiku Voipio <riku.voipio@linaro.org>2017-12-07 09:55:21 +0000
commit33809076e7fc00d7c54fc49b9d20bc63860ca1a5 (patch)
tree173548db3e5d546ef89ff692c9b261f7157cbb6b
parent8b977de2179effcf4c63d3daffc2cb4081bb1037 (diff)
downloadconfigs-33809076e7fc00d7c54fc49b9d20bc63860ca1a5.tar.gz
compass-flannel-cni: new job to build flannel cni
Flannel CNI container for OPNFV Compass4NFV installer Change-Id: I871bf7f4c5093f7fcf01594387fb59c247861fbf Signed-off-by: Yibo Cai <yibo.cai@linaro.org>
-rw-r--r--compass-flannel-cni.yaml46
-rwxr-xr-xcompass/compass-flannel-cni.sh17
2 files changed, 63 insertions, 0 deletions
diff --git a/compass-flannel-cni.yaml b/compass-flannel-cni.yaml
new file mode 100644
index 000000000..bcf7f9f17
--- /dev/null
+++ b/compass-flannel-cni.yaml
@@ -0,0 +1,46 @@
+- job:
+ name: compass-flannel-cni
+ project-type: freestyle
+ defaults: global
+ properties:
+ - authorization:
+ anonymous:
+ - job-discover
+ linaro:
+ - job-read
+ - job-extended-read
+ - build-discarder:
+ days-to-keep: 30
+ num-to-keep: 30
+ disabled: false
+ node: build-arm64
+ concurrent: false
+ display-name: 'Compass4NFV flannel-cni image build/publish'
+ scm:
+ - git:
+ url: https://github.com/yibo-cai/flannel-cni.git
+ branches:
+ - origin/arm64
+ basedir: flannel-cni
+ skip-tag: true
+ shallow-clone: true
+ wipe-workspace: false
+ triggers:
+ - pollscm: 'H/30 * * * *'
+ wrappers:
+ - timestamps
+ - copy-to-slave:
+ includes:
+ - config.json
+ relative-to: 'somewhereElse'
+ - credentials-binding:
+ - text:
+ credential-id: DOCKER_AUTH
+ variable: DOCKER_AUTH
+ builders:
+ - linaro-publish-token
+ - shell:
+ !include-raw: compass/compass-flannel-cni.sh
+ publishers:
+ - email:
+ recipients: 'yibo.cai@linaro.org di.xu@arm.com'
diff --git a/compass/compass-flannel-cni.sh b/compass/compass-flannel-cni.sh
new file mode 100755
index 000000000..3c4683abb
--- /dev/null
+++ b/compass/compass-flannel-cni.sh
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+set -e
+
+trap cleanup_exit INT TERM EXIT
+
+cleanup_exit()
+{
+ rm -rf ${HOME}/.docker
+}
+
+mkdir -p ${HOME}/.docker
+sed -e "s|\${DOCKER_AUTH}|${DOCKER_AUTH}|" < ${WORKSPACE}/config.json > ${HOME}/.docker/config.json
+chmod 0600 ${HOME}/.docker/config.json
+
+# push linaro/flannel-cni-arm64:v0.2.0
+cd flannel-cni && make