Skip to content

Commit

Permalink
Removed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
razvanMiu committed Apr 21, 2021
1 parent 47445c3 commit ba7d585
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 eeacms/plonesaas; 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 TIMEOUT=600000 -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 eeacms/plonesaas; 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 TIMEOUT=600000 -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 ba7d585

Please sign in to comment.