diff --git a/Jenkinsfile b/Jenkinsfile index 5552ccdc6..713a63c52 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -156,7 +156,8 @@ pipeline { } always { script { - if (!['master', 'test'].contains(env.BRANCH_NAME)) { + if (env.RUN_SOURCE == 'git' + && !['master', 'test'].contains(env.BRANCH_NAME)) { try { junit 'junitresults.xml' junit 'junit.xml'