From 4d9f15d93de86ac53690e76047d29f16f7e7a545 Mon Sep 17 00:00:00 2001 From: RichardG867 Date: Thu, 6 Apr 2023 19:55:04 -0300 Subject: [PATCH] Jenkins: Another shot at forcedir creation --- .ci/Jenkinsfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.ci/Jenkinsfile b/.ci/Jenkinsfile index d65f774d1..250c2860c 100644 --- a/.ci/Jenkinsfile +++ b/.ci/Jenkinsfile @@ -286,14 +286,16 @@ pipeline { dir(dynarecNames[dynarec]) { dir("$os - $archName") { ret = runBuild("-b \"$packageName\" \"$arch\" ${presetFlags[preset]} ${dynarecFlags[dynarec]} ${osFlags[os]} $buildFlags") - writeFile file: '.forcedir', text: '' + if (presets.size == 1) + writeFile file: '.forcedir', text: '' } - writeFile file: '.forcedir', text: '' + if ((osArchs.size == 1) && (thisOsArchs.size == 1)) + writeFile file: '.forcedir', text: '' } if (ret == 0) { /* Archive resulting artifacts. */ - archiveArtifacts artifacts: "**/$packageName*, **/.forcedir" + archiveArtifacts artifacts: "**/$packageName*, **/.forcedir", defaultExcludes: false } else { /* Fail this stage. */ failStage()