summaryrefslogtreecommitdiff
path: root/libs/environment.py
diff options
context:
space:
mode:
authorCarlos Konstanski <ckonstanski@pippiandcarlos.com>2017-10-27 17:00:37 -0600
committerCarlos Konstanski <ckonstanski@pippiandcarlos.com>2017-10-27 17:00:37 -0600
commitd4cb0069e866a5b14c8387080c88a635130793bc (patch)
tree3206b6eb899ce6da05103ec33350692aa8e33ad0 /libs/environment.py
parentfcc50ee03d250f7ff8fb7b1e47e484d09d6fb727 (diff)
jenkins scripting
Diffstat (limited to 'libs/environment.py')
-rw-r--r--libs/environment.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/libs/environment.py b/libs/environment.py
index f78f3d1..7e9027f 100644
--- a/libs/environment.py
+++ b/libs/environment.py
@@ -14,6 +14,7 @@ class Environment(object):
os_identity_api_version,
os_image_api_version,
elements_path,
+ manifests_path,
extra_envs={}):
if os_auth_url is None or \
os_project_name is None or \
@@ -24,7 +25,8 @@ class Environment(object):
os_user_domain_name is None or \
os_identity_api_version is None or \
os_image_api_version is None or \
- elements_path is None:
+ elements_path is None or \
+ manifests_path is None:
print("All required environment arguments must have a value. You passed in:" + \
"\nos_auth_url = " + str(os_auth_url) + \
"\nos_project_name = " + str(os_project_name) + \
@@ -35,7 +37,8 @@ class Environment(object):
"\nos_user_domain_name = " + str(os_user_domain_name) + \
"\nos_identity_api_version = " + str(os_identity_api_version) + \
"\nos_image_api_version = " + str(os_image_api_version) + \
- "\nelements_path = " + str(elements_path))
+ "\nelements_path = " + str(elements_path) + \
+ "\nmanifests_path = " + str(manifests_path))
sys.exit(1)
else:
self.os_auth_url = os_auth_url
@@ -48,6 +51,7 @@ class Environment(object):
self.os_identity_api_version = os_identity_api_version
self.os_image_api_version = os_image_api_version
self.elements_path = elements_path
+ self.manifests_path = manifests_path
self.extra_envs = {}
for key, value in [(k, v) for (k, v) in extra_envs.items() if v]:
self.extra_envs[key] = value