summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFatih Degirmenci <fatih.degirmenci@ericsson.com>2017-09-12 15:27:08 -0600
committerFatih Degirmenci <fatih.degirmenci@ericsson.com>2017-09-12 16:03:08 -0600
commit42119d3e4bf3bf80d3b2003cf55de5feb86ce71d (patch)
tree01674d8e56afcc5d56f68f97ee2edc3a67bc2dee
parent87fd380c40f763e50ca2361c6d69ef9d95c7e7f1 (diff)
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 <fatih.degirmenci@ericsson.com>
-rw-r--r--jjb/xci/xci-verify-jobs.yml12
1 files changed, 12 insertions, 0 deletions
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