diff --git a/Jenkinsfile b/Jenkinsfile index 376cdf69be6955e94ca8dc75f18041ed103aee2a..066e1deb2df65d6ff8d20c652236024ec240ef0f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -13,7 +13,7 @@ pipeline { BLUE_OCEAN_URL = "https://jenkins.ozg-sh.de/blue/organizations/jenkins/goofy/detail/${env.BRANCH_NAME}/${env.BUILD_NUMBER}/pipeline" RELEASE_REGEX = /\d+.\d+.\d+/ SNAPSHOT_REGEX = /\d+.\d+.\d+-SNAPSHOT/ - E2E_FAILED = [] + E2E_FAILED = '' } options { @@ -163,7 +163,7 @@ pipeline { ) if(runTests(stageName, 'einheitlicher-ansprechpartner') != '0') { - E2E_FAILED += [stageName] + E2E_FAILED += "${stageName}, " } shutdownEnvironment(namespace) @@ -208,7 +208,7 @@ pipeline { ) if(runTests(stageName, 'main-tests') != '0') { - E2E_FAILED += [stageName] + E2E_FAILED += "${stageName}, " } shutdownEnvironment(namespace) @@ -240,7 +240,7 @@ pipeline { always { script { if (E2E_FAILED) { - FAILED_STAGE = "E2E (${E2E_FAILED.join(', ')})" + FAILED_STAGE = "E2E (${E2E_FAILED.substring(0, E2E_FAILED.length() - 2)})" } } }