Jenkins: Clean output directory after archiving artifacts

This commit is contained in:
RichardG867
2022-02-07 12:00:21 -03:00
parent 3fde7fb575
commit 250c82a250

6
.ci/Jenkinsfile vendored
View File

@@ -195,6 +195,9 @@ pipeline {
/* Archive resulting artifacts. */
archiveArtifacts artifacts: "$packageName*"
}
/* Clean up. */
removeDir("${env.WORKSPACE_TMP}/output")
} catch (e) {
/* Mark that a failure occurred. */
anyFailure = true
@@ -231,6 +234,9 @@ pipeline {
/* Archive resulting artifacts. */
archiveArtifacts artifacts: "**/**/$packageName*"
}
/* Clean up. */
removeDir("${env.WORKSPACE_TMP}/output")
} catch (e) {
/* Mark that a failure occurred. */
anyFailure = true