diff --git a/Jenkinsfile b/Jenkinsfile index c1f72ac4588..d392b7595db 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -100,9 +100,9 @@ pipeline { def packageJson = readJSON file: 'package.json' env.VERSION = "${packageJson.version}-build${env.BUILD_ID}" env.NETWORK = "${PROJECT_NAME}-${env.BRANCH_NAME}-${env.BUILD_ID}" - cleanDockerE2E(containerId) + cleanDockerE2E() sh "pnpm exec cypress install" - // sh "docker build -t cypress-setup:latest -f ./test/cypress/Dockerfile ." + sh "docker build -t cypress-setup:latest -f ./test/cypress/Dockerfile ." docker.build('cypress-setup:latest', "-f ./test/cypress/Dockerfile .") } @@ -172,12 +172,12 @@ pipeline { } } -def cleanDockerE2E(String containerId = null) { +def cleanDockerE2E() { script { sh "docker-compose -p ${env.NETWORK} -f docker-compose.e2e.yml down || true" - if (containerId?.trim()) { - sh "docker rm ${containerId} || true" - } + // if (containerId?.trim()) { + // sh "docker rm ${containerId} || true" + // } } }