Files
abcParser/Jenkinsfile
richard a530e8fd78
Some checks failed
abc-api/abcParser/master This commit looks good
abc-api/abcParser/pipeline/head There was a failure building this commit
add jenkinsfile and reorganised docker-compose.yml
2020-03-22 10:19:27 -04:00

34 lines
725 B
Groovy

pipeline {
environment {
WORKDIR = './'
DOCKER_HOST = 'dkhost:2376'
}
agent { label 'docker' }
options {
buildDiscarder(logRotator(numToKeepStr: '2'))
}
triggers {
cron('@weekly')
}
stages {
stage('prepare') {
steps {
checkout scm
sh 'docker-compose run --rm composer install'
sh 'ls'
}
}
stage('test') {
steps {
dir(WORKDIR) {
//sh "DOCKER_HOST=${DOCKER_HOST} docker-compose -f docker-compose.prod.yml pull"
sh "docker-compose run --rm tests"
}
}
}
}
}