From 2b81bb8a48f0e23636c560bb297709c75520fd8a Mon Sep 17 00:00:00 2001 From: Mpho raf Date: Tue, 2 Feb 2021 15:11:34 +0200 Subject: [PATCH] Try to fix jenkinsfile --- Jenkinsfile | 44 ++++++++++++++++++++++++++------------------ 1 file changed, 26 insertions(+), 18 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 75d1d34..b2e9ba2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,23 +1,31 @@ -matrix { - agent none - axes { - axis { - name 'PY_VERSION' - values '3.6-alpine', '3.7-alpine', '3.8-alpine', '3.9-alpine' - } +pipeline { + agent any + options { + parallelsAlwaysFailFast() } stages { - agent { - docker { image "python:$PY_VERSION" - args '-e DJANGO_SETTINGS_MODULE: "locallibrary.settings"'} - } - stage('build') { - sh 'python --version' - } - stage('test') { - sh 'pip3 install -r requirements.txt' - sh 'python -m pytest catalog/tests/' - sh 'python -m xmlrunner discover -p *_test.py' + matrix { + agent none + axes { + axis { + name 'PY_VERSION' + values '3.6-alpine', '3.7-alpine', '3.8-alpine', '3.9-alpine' + } + } + stages { + agent { + docker { image "python:$PY_VERSION" + args '-e DJANGO_SETTINGS_MODULE: "locallibrary.settings"'} + } + stage('build') { + sh 'python --version' + } + stage('test') { + sh 'pip3 install -r requirements.txt' + sh 'python -m pytest catalog/tests/' + sh 'python -m xmlrunner discover -p *_test.py' + } + } } } }