From: Fatih Degirmenci Date: Tue, 12 Sep 2017 21:27:08 +0000 (-0600) Subject: xci: Make it possible to skip deployment and healthcheck X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=42119d3e4bf3bf80d3b2003cf55de5feb86ce71d;p=releng.git xci: Make it possible to skip deployment and healthcheck This change adds possibility for patch submitters to skip the full xci-verify if the change doesn't impact the deployment. Since the patch will be reviewed by others, reviewers can always ask the submitter to run it through full xci-verify by changing the topic and posting reverify or recheck as comment to gerrit change. The keyword to put in topic branch is skip-verify. Change-Id: Ib7be71cadd1e1ddff181936ae77753fbfbf3a1d3 Signed-off-by: Fatih Degirmenci --- diff --git a/jjb/xci/xci-verify-jobs.yml b/jjb/xci/xci-verify-jobs.yml index f7dcb9937..f0a673bd8 100644 --- a/jjb/xci/xci-verify-jobs.yml +++ b/jjb/xci/xci-verify-jobs.yml @@ -212,6 +212,12 @@ - shell: | #!/bin/bash + # skip the deployment if the patch doesn't impact the deployment + if [[ "$GERRIT_TOPIC" =~ 'skip-verify' ]]; then + echo "Skipping the deployment!" + exit 0 + fi + # for some reason, the PATH is not set correctly # setting PATH for ansible stuff export PATH=/home/jenkins/.local/bin:$PATH @@ -226,6 +232,12 @@ - shell: | #!/bin/bash + # skip the healthcheck if the patch doesn't impact the deployment + if [[ "$GERRIT_TOPIC" =~ 'skip-verify' ]]; then + echo "Skipping the healthcheck!" + exit 0 + fi + echo "Hello World!" # this will be enabled once the xci is prepared