Skip to content

Commit

Permalink
Uncomment cypress tests
Browse files Browse the repository at this point in the history
  • Loading branch information
razvanMiu committed Jan 8, 2021
1 parent 22c4d50 commit 4a48ffa
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,30 +49,30 @@ pipeline {
}
}

// stage('Integration tests') {
// steps {
// parallel(
stage('Integration tests') {
steps {
parallel(

// "Cypress": {
// node(label: 'docker') {
// script {
// try {
// sh '''docker pull plone; docker run -d --name="$BUILD_TAG-plone" -e SITE="Plone" -e PROFILES="profile-plone.restapi:blocks" plone fg'''
// sh '''docker pull eeacms/eprtr-frontend; docker run -i --name="$BUILD_TAG-cypress" --link $BUILD_TAG-plone:plone -e NAMESPACE="$NAMESPACE" -e GIT_NAME=$GIT_NAME -e GIT_BRANCH="$BRANCH_NAME" -e GIT_CHANGE_ID="$CHANGE_ID" eeacms/eprtr-frontend cypress'''
// } finally {
// sh '''mkdir -p cypress-reports'''
// sh '''docker cp $BUILD_TAG-cypress:/opt/frontend/cypress/videos cypress-reports/'''
// stash name: "cypress-reports", includes: "cypress-reports/**/*"
// archiveArtifacts artifacts: 'cypress-reports/videos/*.mp4', fingerprint: true
// sh '''echo "$(docker stop $BUILD_TAG-plone; docker rm -v $BUILD_TAG-plone; docker rm -v $BUILD_TAG-cypress)" '''
// }
// }
// }
// }
"Cypress": {
node(label: 'docker') {
script {
try {
sh '''docker pull plone; docker run -d --name="$BUILD_TAG-plone" -e SITE="Plone" -e PROFILES="profile-plone.restapi:blocks" plone fg'''
sh '''docker pull eeacms/eprtr-frontend; docker run -i --name="$BUILD_TAG-cypress" --link $BUILD_TAG-plone:plone -e NAMESPACE="$NAMESPACE" -e GIT_NAME=$GIT_NAME -e GIT_BRANCH="$BRANCH_NAME" -e GIT_CHANGE_ID="$CHANGE_ID" eeacms/eprtr-frontend cypress'''
} finally {
sh '''mkdir -p cypress-reports'''
sh '''docker cp $BUILD_TAG-cypress:/opt/frontend/cypress/videos cypress-reports/'''
stash name: "cypress-reports", includes: "cypress-reports/**/*"
archiveArtifacts artifacts: 'cypress-reports/videos/*.mp4', fingerprint: true
sh '''echo "$(docker stop $BUILD_TAG-plone; docker rm -v $BUILD_TAG-plone; docker rm -v $BUILD_TAG-cypress)" '''
}
}
}
}

// )
// }
// }
)
}
}

stage('Upgrade demo') {
when {
Expand Down

0 comments on commit 4a48ffa

Please sign in to comment.