summaryrefslogtreecommitdiffstats
path: root/jjb
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2019-09-21 10:12:35 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2019-09-21 10:12:35 +0200
commite4b1426a741a65834b2374c331d5a4257816bfdb (patch)
tree56502f983184c747e2c0264a0375ac7abf07d723 /jjb
parent0766872ba98dc6c46bbe2cfac085bb090b279489 (diff)
Call docker via sudo
Switching slaves from Alpine containers to Ubuntu hosts requires sudo Change-Id: I4fa45ab4af43d2bcebd8501977cb971f443efcab Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'jjb')
-rw-r--r--jjb/airship/airship.yaml8
1 files changed, 4 insertions, 4 deletions
diff --git a/jjb/airship/airship.yaml b/jjb/airship/airship.yaml
index 833ad7479..8d0518013 100644
--- a/jjb/airship/airship.yaml
+++ b/jjb/airship/airship.yaml
@@ -43,14 +43,14 @@
else
image={repo}:{port}/{container}:{tag}
fi
- docker pull $image
+ sudo docker pull $image
- builder:
name: airship-run-containers
builders:
- shell: |
set +ex
- [ ! -z "$WORKSPACE" ] && rm -rf $WORKSPACE/* || true
+ [ ! -z "$WORKSPACE" ] && sudo rm -rf $WORKSPACE/* || true
if [ "{repo}" = "_" ]; then
image={container}:{tag}
elif [ "{port}" = "None" ]; then
@@ -58,7 +58,7 @@
else
image={repo}:{port}/{container}:{tag}
fi
- docker run --rm \
+ sudo docker run --rm \
-e TEST_DB_URL=http://testresults.opnfv.org/test/api/v1/results \
-e NODE_NAME=intel-pod17 \
-e INSTALLER_TYPE=airship \
@@ -90,7 +90,7 @@
else
image={repo}:{port}/{container}:{tag}
fi
- docker rmi $image || true
+ sudo docker rmi $image || true
- builder:
name: airship-deploy