diff --git a/alfa-client/Jenkinsfile.e2e b/alfa-client/Jenkinsfile.e2e index 8d762d781afb8dc6f7bdffa79612b061972d2534..9e2e4a20b7343b675bfb66717cbe34bbba4e35e3 100644 --- a/alfa-client/Jenkinsfile.e2e +++ b/alfa-client/Jenkinsfile.e2e @@ -222,7 +222,7 @@ pipeline { FAILED_STAGE = env.STAGE_NAME waitForAdminRollout(env.ADMIN_BEZEICHNER) -// waitForOzgCloudStackRollout([env.EA_BEZEICHNER, env.MAIN_BEZEICHNER]) + waitForOzgCloudStackRollout([env.EA_BEZEICHNER, env.MAIN_BEZEICHNER]) } } post { @@ -254,67 +254,67 @@ pipeline { failFast false parallel { -// stage('E2E-Alfa-EA') { -// when { -// expression { !SKIP_RUN } -// } -// steps { -// catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') { -// script { -// def bezeichner = env.EA_BEZEICHNER -// -// Integer mongoDbPort = forwardMongoDbPort(generateNamespace(bezeichner)) -// -// runTests(bezeichner, 'alfa-e2e', 'einheitlicher-ansprechpartner', env.KEYCLOAK_CLIENT_ALFA_APP, mongoDbPort, env.STAGE_NAME) -// -// stopForwardMongoDbPort(generateNamespace(bezeichner)) -// } -// } -// } -// post { -// failure { -// script { -// FAILED_PARALLEL_STAGE += "${env.STAGE_NAME} " -// } -// } -// always { -// script { -// publishAlfaE2ETestResult("einheitlicher-ansprechpartner", "Alfa E2E-Tests EA") -// } -// } -// } -// } -// -// stage('E2E-Alfa-Main') { -// when { -// expression { !SKIP_RUN } -// } -// steps { -// catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') { -// script { -// def bezeichner = env.MAIN_BEZEICHNER -// -// Integer mongoDbPort = forwardMongoDbPort(generateNamespace(bezeichner)) -// -// runTests(bezeichner, 'alfa-e2e', 'main-tests', env.KEYCLOAK_CLIENT_ALFA_APP, mongoDbPort, env.STAGE_NAME) -// -// stopForwardMongoDbPort(generateNamespace(bezeichner)) -// } -// } -// } -// post { -// failure { -// script { -// FAILED_PARALLEL_STAGE += "${env.STAGE_NAME} " -// } -// } -// always { -// script { -// publishAlfaE2ETestResult("main-tests", "Alfa E2E-Tests main") -// } -// } -// } -// } + stage('E2E-Alfa-EA') { + when { + expression { !SKIP_RUN } + } + steps { + catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') { + script { + def bezeichner = env.EA_BEZEICHNER + + Integer mongoDbPort = forwardMongoDbPort(generateNamespace(bezeichner)) + + runTests(bezeichner, 'alfa-e2e', 'einheitlicher-ansprechpartner', env.KEYCLOAK_CLIENT_ALFA_APP, mongoDbPort, env.STAGE_NAME) + + stopForwardMongoDbPort(generateNamespace(bezeichner)) + } + } + } + post { + failure { + script { + FAILED_PARALLEL_STAGE += "${env.STAGE_NAME} " + } + } + always { + script { + publishAlfaE2ETestResult("einheitlicher-ansprechpartner", "Alfa E2E-Tests EA") + } + } + } + } + + stage('E2E-Alfa-Main') { + when { + expression { !SKIP_RUN } + } + steps { + catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') { + script { + def bezeichner = env.MAIN_BEZEICHNER + + Integer mongoDbPort = forwardMongoDbPort(generateNamespace(bezeichner)) + + runTests(bezeichner, 'alfa-e2e', 'main-tests', env.KEYCLOAK_CLIENT_ALFA_APP, mongoDbPort, env.STAGE_NAME) + + stopForwardMongoDbPort(generateNamespace(bezeichner)) + } + } + } + post { + failure { + script { + FAILED_PARALLEL_STAGE += "${env.STAGE_NAME} " + } + } + always { + script { + publishAlfaE2ETestResult("main-tests", "Alfa E2E-Tests main") + } + } + } + } stage('E2E-Admin-Main') { when { expression { !SKIP_RUN } @@ -529,12 +529,11 @@ Void checkoutGitopsE2eBranch() { Void generateNamespaces() { def y1 = generateAdminNamespaceYaml() -// def y2 = generateEaNamespaceYaml() -// def y3 = generateMainNamespaceYaml() + def y2 = generateEaNamespaceYaml() + def y3 = generateMainNamespaceYaml() dir("gitops") { -// sh "git add ${y1} ${y2} ${y3}" - sh "git add ${y1}" + sh "git add ${y1} ${y2} ${y3}" sh "git commit -m 'add e2e namespaces for testrun'" } @@ -633,7 +632,7 @@ Void waitForOzgCloudStackRollout(ozgCloudBezeichner) { } Void waitForAdminRollout(String bezeichner) { -// waitForOzgCloudStackRollout([bezeichner]) + waitForOzgCloudStackRollout([bezeichner]) waitForHealthyApplication(bezeichner, 'administration') waitForHealthyApplication(bezeichner, 'admin-client') }