build: refs #6695 try e2e jenkins
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details

This commit is contained in:
Alex Moreno 2025-01-29 07:37:11 +01:00
parent 38b8a13225
commit ed9f21170e
1 changed files with 4 additions and 23 deletions

27
Jenkinsfile vendored
View File

@ -66,25 +66,6 @@ pipeline {
sh 'pnpm install --prefer-offline' 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
// )
// }
// }
// }
stage('E2E') { stage('E2E') {
when { when {
expression { !PROTECTED_BRANCH } expression { !PROTECTED_BRANCH }
@ -92,11 +73,11 @@ pipeline {
environment { environment {
NODE_ENV = "" NODE_ENV = ""
} }
script {
def packageJson = readJSON file: 'package.json'
env.VERSION = "${packageJson.version}-build${env.BUILD_ID}"
}
steps { steps {
script {
def packageJson = readJSON file: 'package.json'
env.VERSION = "${packageJson.version}-build${env.BUILD_ID}"
}
sh 'docker-compose -f docker-compose.e2e.yml up front --build' sh 'docker-compose -f docker-compose.e2e.yml up front --build'
} }
post { post {