build: refs #6695 try e2e jenkins
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
413891ce10
commit
38b8a13225
|
@ -66,7 +66,6 @@ pipeline {
|
|||
sh 'pnpm install --prefer-offline'
|
||||
}
|
||||
}
|
||||
// UNCOMMENT ME!
|
||||
// stage('Test') {
|
||||
// when {
|
||||
// expression { !PROTECTED_BRANCH }
|
||||
|
@ -90,47 +89,17 @@ pipeline {
|
|||
when {
|
||||
expression { !PROTECTED_BRANCH }
|
||||
}
|
||||
// environment {
|
||||
// // CREDENTIALS = credentials('docker-registry')
|
||||
// // IMAGE = "$REGISTRY/salix-back"
|
||||
// }
|
||||
steps {
|
||||
script {
|
||||
def packageJson = readJSON file: 'package.json'
|
||||
env.VERSION = "${packageJson.version}-e2e${env.BUILD_ID}"
|
||||
}
|
||||
// // sh 'docker pull $IMAGE:dev'
|
||||
// sh 'git clone https://gitea.verdnatura.es/verdnatura/salix.git'
|
||||
// // sh 'docker ps -a'
|
||||
// sh 'docker network create salix_default'
|
||||
// sh 'docker-compose -f docker-compose.yml build db'
|
||||
// sh 'docker-compose -f docker-compose.yml up db'
|
||||
// sh 'docker run --name back $IMAGE:dev'
|
||||
sh 'export VERSION=e2e-try'
|
||||
sh 'rm -rf salix'
|
||||
sh 'docker-compose down'
|
||||
sh 'docker-compose rm'
|
||||
sh 'docker-compose -f docker-compose.e2e.yml up front --build'
|
||||
// sh 'docker rm -f back'
|
||||
// sh 'docker rm -f db'
|
||||
// sh 'docker rm -f front'
|
||||
// sh 'docker rm -f e2e'
|
||||
// sh 'git clone --branch dev https://gitea.verdnatura.es/verdnatura/salix.git'
|
||||
// sh 'cd front'
|
||||
// sh '# export VERSION=e2e-try'
|
||||
// sh 'docker build -f salix/back/Dockerfile -t back ./salix'
|
||||
// sh 'docker-compose version'
|
||||
// // // sh 'quasar build'
|
||||
// // // sh 'docker compose -f docker-compose.e2e.yml build front'
|
||||
// // // sh 'docker compose -f docker-compose.e2e.yml up 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 e2e'
|
||||
|
||||
environment {
|
||||
NODE_ENV = ""
|
||||
}
|
||||
post {
|
||||
script {
|
||||
def packageJson = readJSON file: 'package.json'
|
||||
env.VERSION = "${packageJson.version}-build${env.BUILD_ID}"
|
||||
}
|
||||
steps {
|
||||
sh 'docker-compose -f docker-compose.e2e.yml up front --build'
|
||||
}
|
||||
post {
|
||||
always {
|
||||
junit(
|
||||
testResults: 'junitresults.xml',
|
||||
|
|
Loading…
Reference in New Issue