build: refs #6695 always clean dockers
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
This commit is contained in:
parent
8dd2659d9f
commit
7811e44d8b
|
@ -99,8 +99,6 @@ pipeline {
|
||||||
def packageJson = readJSON file: 'package.json'
|
def packageJson = readJSON file: 'package.json'
|
||||||
env.VERSION = "${packageJson.version}-build${env.BUILD_ID}"
|
env.VERSION = "${packageJson.version}-build${env.BUILD_ID}"
|
||||||
}
|
}
|
||||||
// sh "docker network rm e2e_default || true"
|
|
||||||
// sh 'docker network create e2e_default || true'
|
|
||||||
sh 'rm -rf salix'
|
sh 'rm -rf salix'
|
||||||
sh 'git clone https://gitea.verdnatura.es/verdnatura/salix.git'
|
sh 'git clone https://gitea.verdnatura.es/verdnatura/salix.git'
|
||||||
// Db
|
// Db
|
||||||
|
@ -117,13 +115,10 @@ pipeline {
|
||||||
sh 'docker-compose -f docker-compose.e2e.yml up e2e'
|
sh 'docker-compose -f docker-compose.e2e.yml up e2e'
|
||||||
}
|
}
|
||||||
post {
|
post {
|
||||||
failure {
|
always {
|
||||||
echo 'Removing containers...'
|
|
||||||
sh 'docker rm -f vn-database || true'
|
sh 'docker rm -f vn-database || true'
|
||||||
sh 'docker rm -f salix_e2e || true'
|
sh 'docker rm -f salix_e2e || true'
|
||||||
sh 'docker-compose -f docker-compose.e2e.yml down || true'
|
sh 'docker-compose -f docker-compose.e2e.yml down || true'
|
||||||
}
|
|
||||||
always {
|
|
||||||
junit(
|
junit(
|
||||||
testResults: 'junitresults.xml',
|
testResults: 'junitresults.xml',
|
||||||
allowEmptyResults: true
|
allowEmptyResults: true
|
||||||
|
|
Loading…
Reference in New Issue