adding logs from the application

This commit is contained in:
Szakalakamaka
2020-09-28 14:58:15 +02:00
parent 9481af141c
commit 00da5915b6
2 changed files with 17 additions and 14 deletions

10
Jenkinsfile vendored
View File

@@ -1,7 +1,7 @@
pipeline {
agent any
tools {
maven "M3"
maven "Maven 3.6.3"
}
stages {
stage('Build') {
@@ -12,8 +12,12 @@ pipeline {
stage('Deploy') {
steps {
sh "docker-compose up -d"
sleep time: 1, unit: 'MINUTES'
sh 'docker logs klaus'
}
}
stage('Logs') {
steps {
sleep time: 1, unit: 'MINUTES'
sh 'docker logs klaus'
}
}
}