Jenkinsfile: Fix the "Deploy" stage setting the build result to success when matching files are not found

Signed-off-by: Username404 <w.iron.zombie@gmail.com>
This commit is contained in:
Username404 2022-08-24 01:17:49 +02:00
parent 5fc16d7d41
commit 9d64f53728
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 1 additions and 1 deletions

2
Jenkinsfile vendored
View File

@ -78,7 +78,7 @@ pipeline {
steps {
echo 'Deploying....'
archiveArtifacts artifacts: 'cmake-build-*/*.deb, cmake-build-*/*.rpm, cmake-build-*/*.tar.gz, cmake-build-*/*.sh, cmake-build-*/*.js', fingerprint: false
catchError(buildResult: 'SUCCESS', stageResult: 'SUCCESS') {
catchError(buildResult: currentBuild.result, stageResult: 'SUCCESS') {
archiveArtifacts artifacts: 'cmake-build-*/*Windows.*.exe, cmake-build-*/*.zip'
}
}