Jenkinsfile modified for gordon deploy
This commit is contained in:
26
Jenkinsfile
vendored
26
Jenkinsfile
vendored
@@ -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'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user