From e4b1426a741a65834b2374c331d5a4257816bfdb Mon Sep 17 00:00:00 2001 From: =?utf8?q?C=C3=A9dric=20Ollivier?= Date: Sat, 21 Sep 2019 10:12:35 +0200 Subject: [PATCH] Call docker via sudo MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Switching slaves from Alpine containers to Ubuntu hosts requires sudo Change-Id: I4fa45ab4af43d2bcebd8501977cb971f443efcab Signed-off-by: Cédric Ollivier --- jjb/airship/airship.yaml | 8 ++++---- 1 file 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 -- 2.16.6