From 5050f8210061ceea77ccdfaf59e62ac8e0aa938b Mon Sep 17 00:00:00 2001 From: kudlaty Date: Thu, 22 Mar 2018 18:49:34 +0100 Subject: [PATCH] feature/kjug artifacts added --- Jenkinsfile | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 02eb740..04cd439 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -12,7 +12,8 @@ pipeline{ sh 'python -m py_compile sources/webapp.py' } } - stage('Tests') { + stage('Test') { + parallel { stage('on centos') { agent { @@ -50,26 +51,25 @@ pipeline{ } } - - stage('Create Artifacts') { - agent { - docker { - image 'cdrx/pyinstaller-linux:python2' - } - } - steps { - sh 'pip install flask' - sh 'pyinstaller --paths=/usr/lib64/python2.7/site-packages/ --onefile sources/webapp.py' - stash includes: 'dist/webapp', name: 'exec_files' - - } - post { - success { - archiveArtifacts 'dist/webapp' - } - + } + stage('Create Artifacts') { + agent { + docker { + image 'cdrx/pyinstaller-linux:python2' } } + steps { + sh 'pip install flask' + sh 'pyinstaller --paths=/usr/lib64/python2.7/site-packages/ --onefile sources/webapp.py' + stash includes: 'dist/webapp', name: 'exec_files' + + } + post { + success { + archiveArtifacts 'dist/webapp' + } + + } } - } -} \ No newline at end of file + } + } \ No newline at end of file