diff --git a/Jenkinsfile b/Jenkinsfile index 00acb98e6634d9366074d862a4f6eb31b7d7c0f8..bbee81183d3c1c395d23a5a5a7213220d3fae4f2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -147,6 +147,44 @@ pipeline { } } } + + stage('E2E-Tests(EA)') { + when { + branch 'master' + } + steps { + script { + FAILED_STAGE=env.STAGE_NAME + } + + container("kubectl") { + sh 'kubectl rollout restart deployment/goofy -n sh-e2e-dev' + sh 'kubectl rollout status deployment/goofy -n sh-e2e-dev' + + sh 'kubectl rollout restart deployment/pluto -n sh-e2e-dev' + sh 'kubectl rollout status deployment/pluto -n sh-e2e-dev' + } + + container("cypress") { + dir('goofy-client') { + sh 'npm run cypress:version' + sh 'npm run cypress:ci-ea-run' + } + } + } + post { + always { + publishHTML (target: [ + allowMissing: false, + alwaysLinkToLastBuild: false, + keepAll: true, + reportDir: 'goofy-client/apps/goofy-e2e/reports', + reportFiles: 'report_einheitlicher-ansprechpartner.html', + reportName: "Goofy E2E-Tests(EA)" + ]) + } + } + } stage('E2E-Tests') { when {