20 lines
386 B
Groovy
20 lines
386 B
Groovy
pipeline {
|
|
agent any
|
|
stages {
|
|
stage('docker-compose') {
|
|
steps {
|
|
sh "docker-compose build"
|
|
}
|
|
}
|
|
stage('Deploy') {
|
|
steps {
|
|
sh "docker-compose up -d"
|
|
}
|
|
}
|
|
stage('logs'){
|
|
sleep time: 1, unit: 'MINUTES'
|
|
sh 'docker logs klaus'
|
|
}
|
|
}
|
|
}
|