Skip to content
Snippets Groups Projects
Commit 4bcfb9c2 authored by OZGCloud's avatar OZGCloud
Browse files

OZG-3140 install cypress

parent f90f4f66
Branches
Tags
No related merge requests found
...@@ -219,6 +219,19 @@ pipeline { ...@@ -219,6 +219,19 @@ pipeline {
} }
} }
stage('E2E') { stage('E2E') {
stages {
stage('Install cypress') {
steps {
script {
FAILED_STAGE = env.STAGE_NAME
dir('goofy-client') {
sh "npm cypress:install"
}
}
}
}
stage('Run E2E-Tests') {
failFast false failFast false
parallel { parallel {
...@@ -280,6 +293,8 @@ pipeline { ...@@ -280,6 +293,8 @@ pipeline {
} }
} }
} }
}
}
} }
post { post {
always { always {
...@@ -351,7 +366,7 @@ String generateHelmChartVersion() { ...@@ -351,7 +366,7 @@ String generateHelmChartVersion() {
} }
Void tagAndPushDockerImage(String newTag){ Void tagAndPushDockerImage(String newTag){
withCredentials([usernamePassword(credentialsId: 'jenkins-docker-login', usernameVariable: 'USER', passwordVariable: 'PASSWORD')]) { withCredentials([usernamePassword(credentialsId: 'jenkins-nexus-login', usernameVariable: 'USER', passwordVariable: 'PASSWORD')]) {
sh 'docker login docker.ozg-sh.de -u ${USER} -p ${PASSWORD}' sh 'docker login docker.ozg-sh.de -u ${USER} -p ${PASSWORD}'
sh "docker tag docker.ozg-sh.de/goofy:${IMAGE_TAG} docker.ozg-sh.de/goofy:${newTag}" sh "docker tag docker.ozg-sh.de/goofy:${IMAGE_TAG} docker.ozg-sh.de/goofy:${newTag}"
......
...@@ -35,6 +35,7 @@ ...@@ -35,6 +35,7 @@
"favicon": "real-favicon generate favicon/faviconDescription.json favicon/faviconData.json src/favicon", "favicon": "real-favicon generate favicon/faviconDescription.json favicon/faviconData.json src/favicon",
"cypress:run": "npx cypress run --project apps/goofy-e2e", "cypress:run": "npx cypress run --project apps/goofy-e2e",
"cypress:version": "npx cypress version", "cypress:version": "npx cypress version",
"cypress:install": "npx cypress install",
"cypress:open": "npx cypress open --project apps/goofy-e2e", "cypress:open": "npx cypress open --project apps/goofy-e2e",
"cypress:ci-run": "npm run cypress:delete-old-reports --REPORT_FOLDER=$npm_config_REPORT_FOLDER ; npm run cypress:run -- --config-file ./$npm_config_CONFIG_FILE ; test=$(echo \"$?\") ; npm run cypress:pre-merge --REPORT_FOLDER=$npm_config_REPORT_FOLDER ; npm run cypress:generate-report --REPORT_FOLDER=$npm_config_REPORT_FOLDER ; exit $test", "cypress:ci-run": "npm run cypress:delete-old-reports --REPORT_FOLDER=$npm_config_REPORT_FOLDER ; npm run cypress:run -- --config-file ./$npm_config_CONFIG_FILE ; test=$(echo \"$?\") ; npm run cypress:pre-merge --REPORT_FOLDER=$npm_config_REPORT_FOLDER ; npm run cypress:generate-report --REPORT_FOLDER=$npm_config_REPORT_FOLDER ; exit $test",
"cypress:delete-old-reports": "REPORT_FOLDER=$npm_config_REPORT_FOLDER node apps/goofy-e2e/src/support/delete-old-reports.ts", "cypress:delete-old-reports": "REPORT_FOLDER=$npm_config_REPORT_FOLDER node apps/goofy-e2e/src/support/delete-old-reports.ts",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment