Jenkinsfile modified for gordon deploy

This commit is contained in:
2021-02-18 16:15:35 +01:00
parent 9a87953e3b
commit c85f8b6693

26
Jenkinsfile vendored
View File

@@ -1,24 +1,8 @@
pipeline { node('master'){
agent any stage('git') {
tools {
maven "Maven 3.6.3"
} }
stages { stage('deploy'){
stage('Build') { sh 'docker-compose --context gordon up --build -d'
steps {
sh "docker-compose --context DEV 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'
}
}
} }
} }