diff --git a/Jenkinsfile b/Jenkinsfile index 537e9a31..50dd434c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,33 +1,39 @@ pipeline { agent { dockerfile { additionalBuildArgs '--tag tamaas-environment'} } triggers { pollSCM('H/15 * * * *') } stages { stage('Configure') { steps { sh 'git submodule update --init --recursive' sh 'echo "py_exec = \'python3\'" >> build-setup.conf' sh 'echo "build_python = \'true\'" >> build-setup.conf' sh 'echo "build_tests = \'true\'" >> build-setup.conf' sh 'echo "use_googletest = \'true\'" >> build-setup.conf' } } stage('Compile') { steps { sh 'scons' } } stage('Run tests') { steps { - sh 'PYTHONPATH=build-release/python/ python -m pytest build-release' + sh 'PYTHONPATH=build-release/python/ python -m pytest --junitxml=results.xml build-release' } } } + + post { + always { + junit 'results.xml' + } + } }