From 56fde3957d9fee8d429b566c3f327b3cfca1883e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Mass=C3=A9?= Date: Wed, 22 May 2019 10:59:36 +0200 Subject: [PATCH] WiP --- testcase-01/Jenkinsfile | 31 ++++++++++++++++++++++++++----- 1 file changed, 26 insertions(+), 5 deletions(-) diff --git a/testcase-01/Jenkinsfile b/testcase-01/Jenkinsfile index 6ba9698..ec46140 100644 --- a/testcase-01/Jenkinsfile +++ b/testcase-01/Jenkinsfile @@ -8,6 +8,7 @@ def toolboxConfig = [ "secretName": params.SECRET_NAME ] def baseSystemName = toolbox.generateRandomBaseSystemName() +def targetSystemName = null node() { stage('Checkout Source') { @@ -26,12 +27,32 @@ node() { stage("Import OpenAPI") { openshift.withCluster() { openshift.withProject(params.NAMESPACE) { - toolbox.importOpenAPI(openshift: openshift, - destination: params.TARGET_INSTANCE, - toolboxConfig: toolboxConfig, - oasFile: "testcase-01/swagger.json", - baseSystemName: baseSystemName) + targetSystemName = toolbox.importOpenAPI(openshift: openshift, + destination: params.TARGET_INSTANCE, + toolboxConfig: toolboxConfig, + oasFile: "testcase-01/swagger.json", + baseSystemName: baseSystemName) + echo "Service with system_name ${systemName} created !" } } } + + stage("Create an Application Plan") { + openshift.withCluster() { + openshift.withProject(params.NAMESPACE) { + applyApplicationPlan(openshift: openshift, + destination: params.TARGET_INSTANCE, + serviceSystemName: targetSystemName, + planSystemName: "test_plan", + planDisplayName: "Test Plan", + toolboxConfig: toolboxConfig) + } + } + } + + // Create an application + // Integration tests + // Promote to production + + }