mirror of
https://github.com/valitydev/es-template-validate.git
synced 2024-11-06 02:25:20 +00:00
35 lines
625 B
Groovy
35 lines
625 B
Groovy
pipeline {
|
|
agent {
|
|
node {
|
|
label 'docker-host'
|
|
}
|
|
}
|
|
stages {
|
|
stage('build') {
|
|
steps {
|
|
checkout scm
|
|
sh 'docker-compose build'
|
|
sh 'docker-compose up -d'
|
|
}
|
|
}
|
|
|
|
stage('tests') {
|
|
steps {
|
|
sh 'python2.7 app.py'
|
|
}
|
|
}
|
|
}
|
|
post {
|
|
always {
|
|
sh "docker-compose down"
|
|
deleteDir()
|
|
}
|
|
success {
|
|
echo 'Test Successful'
|
|
}
|
|
|
|
failure {
|
|
echo 'Test failed'
|
|
}
|
|
}
|
|
} |