es-template-validate/Jenkinsfile
Ivan Panteleev f1b7ea15b1 init commit
2019-12-04 15:08:36 +03:00

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'
}
}
}