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