diff --git a/Jenkinsfile b/Jenkinsfile index fa3f791..7e7a422 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,56 +1,56 @@ 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 'rm -rf build-release' + sh 'rm -rf build-release .sconf_temp .sconsign.dblite' sh 'scons' } } stage('Run tests') { steps { sh 'PYTHONPATH=build-release/python/ python -m pytest --junitxml=results.xml build-release' } } } post { always { junit 'results.xml' step([$class: 'XUnitBuilder', thresholds: [ [$class: 'SkippedThreshold', failureThreshold: '0'], [$class: 'FailedThreshold', failureThreshold: '0']], tools: [[$class: 'GoogleTestType', pattern: 'build-release/tests/gtest_results.xml']]]) } failure { emailext( body: '''${SCRIPT, template="groovy-html.template"}''', mimeType: 'text/html', subject: "[Jenkins] ${currentBuild.fullDisplayName} Failed", recipientProviders: [[$class: 'CulpritsRecipientProvider']], to: 'lucas.frerot@epfl.ch', attachLog: true, compressLog: true) } } }