testing config service
This commit is contained in:
24
Jenkinsfile-PROD
Normal file
24
Jenkinsfile-PROD
Normal 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'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user