testing config service

This commit is contained in:
Szakalakamaka
2020-10-26 15:57:16 +01:00
parent e8d99fbaf2
commit 4e7d9ffd33
8 changed files with 120 additions and 0 deletions

24
Jenkinsfile-PROD Normal file
View File

@@ -0,0 +1,24 @@
pipeline {
agent any
tools {
maven "Maven 3.6.3"
}
stages {
stage('Build') {
steps {
sh "docker-compose -f docker-compose-PROD --context PROD build"
}
}
stage('Deploy') {
steps {
sh "docker-compose -f docker-compose-PROD --context PROD up -d"
}
}
stage('Logs') {
steps {
sleep time: 1, unit: 'MINUTES'
sh 'docker -f docker-compose-PROD --context PROD logs klaus'
}
}
}
}