adding logs from the application
This commit is contained in:
10
Jenkinsfile
vendored
10
Jenkinsfile
vendored
@@ -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'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user