onap: Do not fail verification if it is not supported 12/2612/1
authorFatih Degirmenci <fdegir@gmail.com>
Tue, 15 Oct 2019 16:39:52 +0000 (18:39 +0200)
committerFatih Degirmenci <fdegir@gmail.com>
Tue, 15 Oct 2019 16:39:52 +0000 (18:39 +0200)
We can't verify changes touching onap-nofeature-noha scenario yet
since it is costly so this change prevents jobs to fail and vote
Verified-1 on Gerrit until we introduce scenario verification for
ONAP.

Change-Id: I11a9ae721c4a588dd28b98bd8325e22a8cbb7537

jjb/cloud-infra/cloud-infra-deploy.sh
jjb/cloud-infra/cloud-infra-test.sh
jjb/cloud-infra/determine-scenario.sh

index 1812f2fcbba97ece6c7df0153a517e48b75c3379..fd9f6a41d42b5f154f17bb6130b9c66cb5c1ae6e 100644 (file)
@@ -37,6 +37,13 @@ set -o pipefail
 #   If DEPLOY_TYPE is baremetal, we use variable NODE_NAME injected by Jenkins to the job
 #     in order to set PDF and IDF for the POD the job is running against.
 
+# we don't support ONAP scenario verification because it is expensive
+# TODO: we need to find a way to verify those patches in a cheaper way
+if [[ "$DEPLOY_SCENARIO" =~ "onap" ]]; then
+  echo "Info: ONAP scenario verification has not been implemented yet!"
+  exit 0
+fi
+
 if [[ $DEPLOY_TYPE == "baremetal" ]]; then
   PDF="https://gerrit.nordix.org/gitweb?p=infra/hwconfig.git;a=blob_plain;f=pods/${NODE_NAME}-pdf.yml"
   IDF="https://gerrit.nordix.org/gitweb?p=infra/hwconfig.git;a=blob_plain;f=pods/${NODE_NAME}-idf.yml"
index d74f47a0edd457516d5b8a815ee71b86ee9a5550..7d6936043bcfbac2f69f7ef6a4ab2617f229e9f1 100644 (file)
@@ -28,6 +28,13 @@ set -o pipefail
 # Logic in this script should be kept at minimum and the changes should be pushed into
 # the cloud infra test test.sh script.
 
+# we don't support ONAP scenario verification because it is expensive
+# TODO: we need to find a way to verify those patches in a cheaper way
+if [[ "$DEPLOY_SCENARIO" =~ "onap" ]]; then
+  echo "Info: ONAP scenario verification has not been implemented yet!"
+  exit 0
+fi
+
 # execute cloud engine test.sh script with arguments
 cd $WORKSPACE
 ./test/test.sh -c -f $TEST_FW -t $TEST_SUITE -s $DEPLOY_SCENARIO -d $YARDSTICK_DISPATCHER
index 77d6c9bcb50810d4644b2fe6e74b4ac93b7f4b4e..2779d63e88840356ec5ed5775e5056a72f9ea3ec 100644 (file)
@@ -77,7 +77,7 @@ function determine_scenario() {
     cd $WORKSPACE
     COMMIT_MESSAGE=$(git show -s --format=%B)
     echo "Info: Not implemented!"
-    exit 1
+    exit 0
   fi
 }