From 5e8461a0f9610982b64e543bf974c5b6a8e7a6d3 Mon Sep 17 00:00:00 2001 From: Miu Razvan Date: Fri, 23 Dec 2022 14:39:02 +0200 Subject: [PATCH] Don't run cypress --- Jenkinsfile | 62 ++++++++++++++++++++++++++--------------------------- 1 file changed, 31 insertions(+), 31 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index f0c59d9..c151b57 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -17,37 +17,37 @@ pipeline { stage('Integration tests') { parallel { - stage('Integration with Cypress') { - when { - environment name: 'CHANGE_ID', value: '' - } - steps { - node(label: 'docker') { - script { - try { - sh '''docker pull eeacms/plone-backend; docker run --rm -d --name="$BUILD_TAG-plone" -e SITE="Plone" -e PROFILES="eea.kitkat:testing" eeacms/plone-backend''' - sh '''docker pull eeacms/volto-project-ci; docker run -i --name="$BUILD_TAG-cypress" --link $BUILD_TAG-plone:plone -e GIT_NAME=$GIT_NAME -e GIT_BRANCH="$BRANCH_NAME" -e GIT_CHANGE_ID="$CHANGE_ID" -e VOLTO=$VOLTO eeacms/volto-project-ci cypress''' - } finally { - try { - sh '''rm -rf cypress-reports cypress-results''' - sh '''mkdir -p cypress-reports cypress-results''' - sh '''docker cp $BUILD_TAG-cypress:/opt/frontend/my-volto-project/cypress/videos cypress-reports/''' - sh '''docker cp $BUILD_TAG-cypress:/opt/frontend/my-volto-project/cypress/reports cypress-results/''' - archiveArtifacts artifacts: 'cypress-reports/videos/*.mp4', fingerprint: true - } - finally { - catchError(buildResult: 'SUCCESS', stageResult: 'SUCCESS') { - junit testResults: 'cypress-results/**/*.xml', allowEmptyResults: true - } - sh script: "docker stop $BUILD_TAG-plone", returnStatus: true - sh script: "docker rm -v $BUILD_TAG-plone", returnStatus: true - sh script: "docker rm -v $BUILD_TAG-cypress", returnStatus: true - } - } - } - } - } - } + // stage('Integration with Cypress') { + // when { + // environment name: 'CHANGE_ID', value: '' + // } + // steps { + // node(label: 'docker') { + // script { + // try { + // sh '''docker pull eeacms/plone-backend; docker run --rm -d --name="$BUILD_TAG-plone" -e SITE="Plone" -e PROFILES="eea.kitkat:testing" eeacms/plone-backend''' + // sh '''docker pull eeacms/volto-project-ci; docker run -i --name="$BUILD_TAG-cypress" --link $BUILD_TAG-plone:plone -e GIT_NAME=$GIT_NAME -e GIT_BRANCH="$BRANCH_NAME" -e GIT_CHANGE_ID="$CHANGE_ID" -e VOLTO=$VOLTO eeacms/volto-project-ci cypress''' + // } finally { + // try { + // sh '''rm -rf cypress-reports cypress-results''' + // sh '''mkdir -p cypress-reports cypress-results''' + // sh '''docker cp $BUILD_TAG-cypress:/opt/frontend/my-volto-project/cypress/videos cypress-reports/''' + // sh '''docker cp $BUILD_TAG-cypress:/opt/frontend/my-volto-project/cypress/reports cypress-results/''' + // archiveArtifacts artifacts: 'cypress-reports/videos/*.mp4', fingerprint: true + // } + // finally { + // catchError(buildResult: 'SUCCESS', stageResult: 'SUCCESS') { + // junit testResults: 'cypress-results/**/*.xml', allowEmptyResults: true + // } + // sh script: "docker stop $BUILD_TAG-plone", returnStatus: true + // sh script: "docker rm -v $BUILD_TAG-plone", returnStatus: true + // sh script: "docker rm -v $BUILD_TAG-cypress", returnStatus: true + // } + // } + // } + // } + // } + // } stage("Docker test build") { when {