From efe26e6e28d450e531914acf393b5aa20f4fb8d5 Mon Sep 17 00:00:00 2001 From: Dragonnight56 <56dragonnight@gmail.com> Date: Thu, 10 Dec 2020 19:48:27 -0800 Subject: [PATCH] Fix? Jenkinsfile --- jenkins/Jenkinsfile | 60 ++++++++++++++++++++++----------------------- 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/jenkins/Jenkinsfile b/jenkins/Jenkinsfile index 637b8a1..cb23aaf 100644 --- a/jenkins/Jenkinsfile +++ b/jenkins/Jenkinsfile @@ -11,35 +11,35 @@ pipeline { sh 'python -m py_compile sources/add2vals.py sources/calc.py' //4 } } - //stage('Test') { - //agent { - //docker { - //image 'qnib/pytest' - //} - //} - //steps { - //sh 'py.test --verbose --junit-xml test-reports/results.xml sources/test_calc.py' - //} - //post { - //always { - //junit 'test-reports/results.xml' - //} - //} - //} - //stage('Deliver') { - //agent { - //docker { - //image 'cdrx/pyinstaller-linux:python2' - //} - //} - //steps { - //sh 'pyinstaller --onefile sources/add2vals.py' - //} - //post { - //success { - //archiveArtifacts 'dist/add2vals' - //} - //} - //} + stage('Test') { + agent { + docker { + image 'qnib/pytest' + } + } + steps { + sh 'py.test --verbose --junit-xml test-reports/results.xml sources/test_calc.py' + } + post { + always { + junit 'test-reports/results.xml' + } + } + } + stage('Deliver') { + agent { + docker { + image 'cdrx/pyinstaller-linux:python2' + } + } + steps { + sh 'pyinstaller --onefile sources/add2vals.py' + } + post { + success { + archiveArtifacts 'dist/add2vals' + } + } + } } }