Skip to content
Snippets Groups Projects
Commit 9dc28c3c authored by OZGCloud's avatar OZGCloud
Browse files

OZG-1784 jenkinsfile

parent 04a3d817
No related branches found
No related tags found
No related merge requests found
...@@ -166,7 +166,7 @@ pipeline { ...@@ -166,7 +166,7 @@ pipeline {
shutdownEnvironment(namespace) shutdownEnvironment(namespace)
if(testResult != "0") { if(!testResult) {
E2E_FAILED += "${stageName}, " E2E_FAILED += "${stageName}, "
error("Fehler in Stage ${stageName}") error("Fehler in Stage ${stageName}")
} }
...@@ -206,7 +206,7 @@ pipeline { ...@@ -206,7 +206,7 @@ pipeline {
shutdownEnvironment(namespace) shutdownEnvironment(namespace)
if(testResult != "0") { if(!testResult) {
E2E_FAILED += "${stageName}, " E2E_FAILED += "${stageName}, "
error("Fehler in Stage ${stageName}") error("Fehler in Stage ${stageName}")
} }
...@@ -370,10 +370,16 @@ Void startGoofy(String namespace, String values, String imageTag) { ...@@ -370,10 +370,16 @@ Void startGoofy(String namespace, String values, String imageTag) {
String runTests(String stageName, String reportFolder) { String runTests(String stageName, String reportFolder) {
container("cypress") { container("cypress") {
def configFile = generateCypressConfig(stageName, reportFolder) try {
dir("goofy-client") { def configFile = generateCypressConfig(stageName, reportFolder)
sh "npm run cypress:version" dir("goofy-client") {
return sh (script: "npm run cypress:ci-run --CONFIG_FILE=${configFile} --REPORT_FOLDER=${reportFolder}", returnStatus: true) sh "npm run cypress:version"
sh "npm run cypress:ci-run --CONFIG_FILE=${configFile} --REPORT_FOLDER=${reportFolder}"
return true
}
} catch (Exception e) {
return false
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment