Add environment variables support
Requires https://gerrit.mcp.mirantis.net/#/c/12117/ and
https://gerrit.mcp.mirantis.net/#/c/12199/
Change-Id: I5e4907a71bc971a882c74c1885590a1b5b2f2f34
diff --git a/cvp-sanity.groovy b/cvp-sanity.groovy
index ed87cd6..7adca5a 100644
--- a/cvp-sanity.groovy
+++ b/cvp-sanity.groovy
@@ -1,6 +1,6 @@
/**
*
- * Launch sanity validation of the cloud
+ * Launch sanity verification of the cloud
*
* Expected parameters:
* SALT_MASTER_URL URL of Salt master
@@ -8,6 +8,7 @@
*
* SANITY_TESTS_SET Leave empty for full run or choose a file (test), e.g. test_mtu.py
* SANITY_TESTS_REPO CVP-sanity-checks repo to clone
+ * SANITY_TESTS_SETTINGS Additional envrionment variables for cvp-sanity-checks
* PROXY Proxy to use for cloning repo or for pip
*
*/
@@ -24,7 +25,7 @@
stage('Run Infra tests') {
sh "mkdir -p ${artifacts_dir}"
- validate.runSanityTests(SALT_MASTER_URL, SALT_MASTER_CREDENTIALS, SANITY_TESTS_SET, artifacts_dir)
+ validate.runSanityTests(SALT_MASTER_URL, SALT_MASTER_CREDENTIALS, SANITY_TESTS_SET, artifacts_dir, SANITY_TESTS_SETTINGS)
}
stage ('Publish results') {
archiveArtifacts artifacts: "${artifacts_dir}/*"