feat: refs #6695 jenkins run e2e
gitea/salix-front/pipeline/pr-dev There was a failure building this commit
Details
gitea/salix-front/pipeline/pr-dev There was a failure building this commit
Details
This commit is contained in:
parent
064ce8042b
commit
8781905cab
|
@ -92,6 +92,10 @@ pipeline {
|
||||||
IMAGE = "$REGISTRY/salix-back"
|
IMAGE = "$REGISTRY/salix-back"
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
|
script {
|
||||||
|
def packageJson = readJSON file: 'package.json'
|
||||||
|
env.VERSION = "${packageJson.version}-e2e${env.BUILD_ID}"
|
||||||
|
}
|
||||||
// // sh 'docker pull $IMAGE:dev'
|
// // sh 'docker pull $IMAGE:dev'
|
||||||
// sh 'git clone https://gitea.verdnatura.es/verdnatura/salix.git'
|
// sh 'git clone https://gitea.verdnatura.es/verdnatura/salix.git'
|
||||||
// // sh 'docker ps -a'
|
// // sh 'docker ps -a'
|
||||||
|
@ -104,9 +108,9 @@ pipeline {
|
||||||
// sh 'cd front'
|
// sh 'cd front'
|
||||||
// sh '# export VERSION=e2e-try'
|
// sh '# export VERSION=e2e-try'
|
||||||
sh 'docker build -f salix/back/Dockerfile -t back ./salix'
|
sh 'docker build -f salix/back/Dockerfile -t back ./salix'
|
||||||
sh 'docker-compose -f docker-compose.e2e.yml up db'
|
sh 'docker-compose -f docker-compose.e2e.yml up db -d'
|
||||||
sh 'docker run --net=host -v ./test/cypress/storage:/salix/storage -d back'
|
sh 'docker run --net=host -v ./test/cypress/storage:/salix/storage -d back'
|
||||||
sh 'docker-compose -f docker-compose.e2e.yml -d up front'
|
sh 'docker-compose -f docker-compose.e2e.yml -d up front -d'
|
||||||
sh 'docker-compose -f docker-compose.e2e.yml up e2e --build'
|
sh 'docker-compose -f docker-compose.e2e.yml up e2e --build'
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue