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 {
agent any
tools {
maven "Maven 3.6.3"
node('master'){
stage('git') {
}
stages {
stage('Build') {
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'
}
}
stage('deploy'){
sh 'docker-compose --context gordon up --build -d'
}
}