Cloud upgrade pipeline - add option to run CVP tests.
Change-Id: I15a8492189df369ea47fbcbef2c4a521ab4dd75a
Related: PROD-20302
diff --git a/cloud-update.groovy b/cloud-update.groovy
index fd7e6ff..151b653 100644
--- a/cloud-update.groovy
+++ b/cloud-update.groovy
@@ -37,6 +37,7 @@
* REMOVE_PKGS Space separated list of pkgs=versions to be removed on physical targeted machines (ex. pkg_name1=pkg_version1 pkg_name2=pkg_version2)
* RESTORE_GALERA Restore Galera DB (bool)
* RESTORE_CONTRAIL_DB Restore Cassandra and Zookeeper DBs for OpenContrail (bool)
+ * RUN_CVP_TESTS Run cloud validation pipelines before and after upgrade
*
**/
def common = new com.mirantis.mk.Common()
@@ -827,6 +828,14 @@
timeout(time: 12, unit: 'HOURS') {
node() {
try {
+ if(RUN_CVP_TESTS.toBoolean() == True){
+ stage('Run CVP tests before upgrade.') {
+ build job: "cvp-sanity"
+ build job: "cvp-func"
+ build job: "cvp-ha"
+ build job: "cvp-perf"
+ }
+ }
stage('Setup virtualenv for Pepper') {
python.setupPepperVirtualenv(pepperEnv, SALT_MASTER_URL, SALT_MASTER_CREDENTIALS)
@@ -1554,6 +1563,15 @@
// verification is already present in restore pipelines
}
+ if(RUN_CVP_TESTS.toBoolean() == True){
+ stage('Run CVP tests after upgrade.') {
+ build job: "cvp-sanity"
+ build job: "cvp-func"
+ build job: "cvp-ha"
+ build job: "cvp-perf"
+ }
+ }
+
} catch (Throwable e) {
// If there was an error or exception thrown, the build failed
currentBuild.result = "FAILURE"