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