Jenkins: Fix incorrect shortening of directory tree

This commit is contained in:
RichardG867
2023-04-06 18:54:50 -03:00
parent 6abf0bbafb
commit 03b0f4c175

10
.ci/Jenkinsfile vendored
View File

@@ -283,13 +283,17 @@ pipeline {
def archName = archNames[archSlug]
if (os == 'macOS')
archName = archNamesMac[archSlug]
dir("${dynarecNames[dynarec]}/$os - $archName") {
ret = runBuild("-b \"$packageName\" \"$arch\" ${presetFlags[preset]} ${dynarecFlags[dynarec]} ${osFlags[os]} $buildFlags")
dir(dynarecNames[dynarec]) {
dir("$os - $archName") {
ret = runBuild("-b \"$packageName\" \"$arch\" ${presetFlags[preset]} ${dynarecFlags[dynarec]} ${osFlags[os]} $buildFlags")
writeFile file: '.forcedir', text: ''
}
writeFile file: '.forcedir', text: ''
}
if (ret == 0) {
/* Archive resulting artifacts. */
archiveArtifacts artifacts: "**/**/$packageName*"
archiveArtifacts artifacts: "**/$packageName*, **/.forcedir"
} else {
/* Fail this stage. */
failStage()