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