test: refs #6695 better clean
gitea/salix-front/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Alex Moreno 2025-01-31 14:18:16 +01:00
parent 5b692612ae
commit c47bdd6b9d
1 changed files with 10 additions and 5 deletions

15
Jenkinsfile vendored
View File

@ -100,6 +100,7 @@ pipeline {
script {
def packageJson = readJSON file: 'package.json'
env.VERSION = "${packageJson.version}-build${env.BUILD_ID}"
cleanDockerE2E()
}
sh 'rm -rf salix'
sh 'git clone https://gitea.verdnatura.es/verdnatura/salix.git'
@ -118,7 +119,6 @@ pipeline {
}
stage('Up Frontend') {
steps {
sh 'quasar build'
sh 'docker-compose -f docker-compose.e2e.yml up -d --build front'
}
}
@ -130,10 +130,7 @@ pipeline {
}
post {
always {
sh 'docker rm -f vn-database || true'
sh 'docker rm -f salix_e2e || true'
sh 'docker-compose -f docker-compose.e2e.yml down || true'
cleanDockerE2E()
junit(
testResults: 'junitresults.xml',
allowEmptyResults: true
@ -182,3 +179,11 @@ pipeline {
}
}
}
def cleanDockerE2E() {
script {
sh 'docker rm -f vn-database || true'
sh 'docker rm -f salix_e2e || true'
sh 'docker-compose -f docker-compose.e2e.yml down || true'
}
}