From fbbbfccd6b83c2a47f9a8ac9b71447d01c5e67a2 Mon Sep 17 00:00:00 2001 From: Cédric Ollivier Date: Thu, 21 Apr 2022 16:57:24 +0200 Subject: Fix trivy calls MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Trivy remove the exit code option. It also takes into account last XtestingCI updates. Change-Id: I33c7a0c8651dc1805af1f3f743cd58618b2b7d3c Signed-off-by: Cédric Ollivier --- jjb/functest/xtesting-pi.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'jjb/functest/xtesting-pi.yaml') diff --git a/jjb/functest/xtesting-pi.yaml b/jjb/functest/xtesting-pi.yaml index 9d2482e55..9fb4ded14 100644 --- a/jjb/functest/xtesting-pi.yaml +++ b/jjb/functest/xtesting-pi.yaml @@ -75,6 +75,7 @@ network: '{network}' uid: '{uid}' gid: '{gid}' + published_ports: '{published_ports}' - builder: name: xtesting-pi-pull-containers @@ -105,6 +106,11 @@ for i in $(eval echo {env} | tr -d '[]' |sed "s/, / /g" ); \ do env="-e $i $env"; done fi + published_ports=; + if [ "{published_ports}" != "None" ]; then + for i in $(echo {published_ports} | tr -d '[]' |sed "s/, / /g" ); \ + do published_ports="-p $i $published_ports"; done + fi [ ! -z "$WORKSPACE" ] && sudo rm -rf $WORKSPACE/results || true if [ "{repo}" = "_" ]; then image={container}:{tag} @@ -120,6 +126,7 @@ --network={network} \ $volumes \ $env \ + $published_ports \ -e S3_ENDPOINT_URL=https://storage.googleapis.com \ -e S3_DST_URL=s3://artifacts.opnfv.org/xtesting/$BUILD_TAG/$JOB_NAME-$BUILD_ID \ -e HTTP_DST_URL=http://artifacts.opnfv.org/xtesting/$BUILD_TAG/$JOB_NAME-$BUILD_ID \ @@ -207,6 +214,7 @@ <<: *xtesting-pi-params volumes: env: + published_ports: container: 'xtesting' test: - first @@ -258,6 +266,7 @@ <<: *xtesting-pi-params volumes: env: + published_ports: container: 'xtesting-mts' test: - seventh @@ -283,6 +292,11 @@ for i in $(eval echo {env} | tr -d '[]' |sed "s/, / /g" ); \ do env="-e $i $env"; done fi + published_ports=; + if [ "{published_ports}" != "None" ]; then + for i in $(echo {published_ports} | tr -d '[]' |sed "s/, / /g" ); \ + do published_ports="-p $i $published_ports"; done + fi [ ! -z "$WORKSPACE" ] && sudo rm -rf $WORKSPACE/results || true if [ "{repo}" = "_" ]; then image={container}:{tag} @@ -296,6 +310,7 @@ sudo docker run --rm \ $volumes \ $env \ + $published_ports \ -e S3_ENDPOINT_URL=https://storage.googleapis.com \ -e S3_DST_URL=s3://artifacts.opnfv.org/xtesting \ -e HTTP_DST_URL=http://artifacts.opnfv.org/xtesting \ @@ -320,12 +335,14 @@ env: '{env}' uid: '{uid}' gid: '{gid}' + published_ports: '{published_ports}' - project: name: 'xtesting-pi-{tag}-zip' <<: *xtesting-pi-params volumes: env: + published_ports: container: 'xtesting' uid: 1000 gid: 1000 -- cgit 1.2.3-korg