From 2f16a39a936ec4f4457ad3d2588b7bc7c013e93c Mon Sep 17 00:00:00 2001 From: Paul Marillonnet Date: Wed, 23 Mar 2022 17:09:49 +0100 Subject: [PATCH] misc: add unit testing in jenkinsfile (#63120) --- Jenkinsfile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 667c125..f63c7db 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -2,7 +2,27 @@ pipeline { agent any + options { + disableConcurrentBuilds() + timeout(time: 20, unit: 'MINUTES') + } stages { + stage('Unit Tests') { + steps { + sh 'tox -rv' + } + post { + always { + script { + utils = new Utils() + utils.publish_coverage('coverage.xml') + utils.publish_coverage_native('index.html') + utils.publish_pylint('pylint.out') + } + mergeJunitResults() + } + } + } stage('Packaging') { steps { script {