From 83dc72142926397ce07ffdde8c1b3aa9c9fa0916 Mon Sep 17 00:00:00 2001 From: Zaman Date: Mon, 2 Mar 2020 18:55:03 +0500 Subject: [PATCH] again --- Jenkinsfile | 30 ++++++------------------------ 1 file changed, 6 insertions(+), 24 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index fe405bf..e78e69f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,20 +1,17 @@ pipeline { - agent none - options { - skipStagesAfterUnstable() - } + agent none stages { - stage('Build') { + stage('Build') { agent { docker { - image 'python:2-alpine' + image 'python:2-alpine' } } steps { - sh 'python -m py_compile sources/add2vals.py sources/calc.py' + sh 'python -m py_compile sources/add2vals.py sources/calc.py' } } - stage('Test') { + stage('Test') { agent { docker { image 'qnib/pytest' @@ -29,20 +26,5 @@ pipeline { } } } - stage('Deliver') { - agent { - docker { - image 'cdrx/pyinstaller-linux:python2' - } - } - steps { - sh 'pyinstaller --onefile sources/add2vals.py' - } - post { - success { - archiveArtifacts 'dist/add2vals' - } - } - } } -} +} \ No newline at end of file