feat(jenkinsE2E): refs #6695 try fix db
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details

This commit is contained in:
Alex Moreno 2024-10-07 13:53:45 +02:00
parent e4b709013e
commit 8985d04d62
1 changed files with 21 additions and 20 deletions

41
Jenkinsfile vendored
View File

@ -64,25 +64,26 @@ pipeline {
sh 'pnpm install --prefer-offline'
}
}
stage('Test') {
when {
expression { !PROTECTED_BRANCH }
}
environment {
NODE_ENV = ""
}
steps {
sh 'pnpm run test:unit:ci'
}
post {
always {
junit(
testResults: 'junitresults.xml',
allowEmptyResults: true
)
}
}
}
// UNCOMMENT ME!
// stage('Test') {
// when {
// expression { !PROTECTED_BRANCH }
// }
// environment {
// NODE_ENV = ""
// }
// steps {
// sh 'pnpm run test:unit:ci'
// }
// post {
// always {
// junit(
// testResults: 'junitresults.xml',
// allowEmptyResults: true
// )
// }
// }
// }
stage('E2E') {
when {
expression { !PROTECTED_BRANCH }
@ -114,11 +115,11 @@ pipeline {
// sh 'cd front'
// sh '# export VERSION=e2e-try'
sh 'docker build -f salix/back/Dockerfile -t back ./salix'
sh 'docker-compose -f docker-compose.e2e.yml up -d --build front'
sh 'pnpm i @verdnatura/myt'
sh 'cd salix && npx myt run -t --ci -d -n front_default'
// sh 'docker-compose -f docker-compose.e2e.yml up --build db'
sh 'docker run --net=host -v ./test/cypress/storage:/salix/storage -d back'
sh 'docker-compose -f docker-compose.e2e.yml up -d --build front'
sh 'docker-compose -f docker-compose.e2e.yml up e2e'
}