From a5b7d2773e0eacba54a639629838305f173d735f Mon Sep 17 00:00:00 2001 From: Harrison Deng Date: Fri, 28 Apr 2023 21:47:18 +0000 Subject: [PATCH] Pipeline no longer fails build if testing step fails --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index c516826..2ea5a72 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -9,7 +9,7 @@ pipeline { } stage("unit tests") { steps { - sh "python -m pytest --junitxml=test_results.xml" + sh returnStatus: true, script: "python -m pytest --junitxml=test_results.xml" xunit checksName: '', tools: [JUnit(excludesPattern: '', pattern: 'test_results.xml', stopProcessingIfError: true)] } }