Correct keystonev3 params for lab and cleanup job
Change-Id: I12135caf71cebcb51d7c8e44d42af007b6a84eee
diff --git a/cleanup-pipeline.groovy b/cleanup-pipeline.groovy
index 4b67213..a2949eb 100644
--- a/cleanup-pipeline.groovy
+++ b/cleanup-pipeline.groovy
@@ -7,11 +7,14 @@
* STACK_TYPE Type of the stack (heat, aws)
*
* Heat parameters:
- * OPENSTACK_API_URL OpenStack API address
- * OPENSTACK_API_CREDENTIALS Credentials to the OpenStack API
- * OPENSTACK_API_PROJECT OpenStack project to connect to
- * OPENSTACK_API_CLIENT Versions of OpenStack python clients
- * OPENSTACK_API_VERSION Version of the OpenStack API (2/3)
+ * OPENSTACK_API_URL OpenStack API address
+ * OPENSTACK_API_CREDENTIALS Credentials to the OpenStack API
+ * OPENSTACK_API_PROJECT OpenStack project to connect to
+ * OPENSTACK_API_PROJECT_DOMAIN Domain for OpenStack project
+ * OPENSTACK_API_PROJECT_ID ID for OpenStack project
+ * OPENSTACK_API_USER_DOMAIN Domain for OpenStack user
+ * OPENSTACK_API_CLIENT Versions of OpenStack python clients
+ * OPENSTACK_API_VERSION Version of the OpenStack API (2/3)
*
* AWS parameters:
* AWS_API_CREDENTIALS Credentials id AWS EC2 API
@@ -53,7 +56,11 @@
stage('Delete stack') {
if (STACK_TYPE == 'heat') {
- def openstackCloud = openstack.createOpenstackEnv(OPENSTACK_API_URL, OPENSTACK_API_CREDENTIALS, OPENSTACK_API_PROJECT)
+ def openstackCloud = openstack.createOpenstackEnv(
+ OPENSTACK_API_URL, OPENSTACK_API_CREDENTIALS,
+ OPENSTACK_API_PROJECT,OPENSTACK_API_PROJECT_DOMAIN,
+ OPENSTACK_API_PROJECT_ID, OPENSTACK_API_USER_DOMAIN,
+ OPENSTACK_API_VERSION)
openstack.getKeystoneToken(openstackCloud, venv_path)
common.infoMsg("Deleting Heat Stack " + STACK_NAME)