feat: refs #6695 try
gitea/salix/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Alex Moreno 2024-09-11 14:42:02 +02:00
parent 441c41e1cc
commit 6700a042e2
1 changed files with 9 additions and 9 deletions

18
Jenkinsfile vendored
View File

@ -98,15 +98,15 @@ pipeline {
IMAGE = "$REGISTRY/salix-back"
}
steps {
// script {
// def packageJson = readJSON file: 'package.json'
// env.VERSION = "e2e-try"
// }
// sh 'docker-compose build back'
// sh 'docker login --username $CREDENTIALS_USR --password $CREDENTIALS_PSW $REGISTRY'
// sh 'docker tag $IMAGE:$VERSION $IMAGE:$BRANCH_NAME'
// sh 'docker push $IMAGE:$BRANCH_NAME'
sh 'echo $GIT_BRANCH'
script {
def packageJson = readJSON file: 'package.json'
env.VERSION = "e2e-try"
}
sh 'docker-compose build back'
sh 'docker login --username $CREDENTIALS_USR --password $CREDENTIALS_PSW $REGISTRY'
sh 'docker tag $IMAGE:$VERSION $IMAGE:$GIT_BRANCH'
sh 'docker push $IMAGE:$GIT_BRANCH'
// sh 'echo $GIT_BRANCH'
}
}
stage('Stack') {