Files
release11-tools-mocked-serv…/Jenkinsfile
2020-09-30 11:43:04 +02:00

27 lines
586 B
Groovy
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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