Jenkins: Clean output directory after archiving artifacts
This commit is contained in:
6
.ci/Jenkinsfile
vendored
6
.ci/Jenkinsfile
vendored
@@ -195,6 +195,9 @@ pipeline {
|
|||||||
/* Archive resulting artifacts. */
|
/* Archive resulting artifacts. */
|
||||||
archiveArtifacts artifacts: "$packageName*"
|
archiveArtifacts artifacts: "$packageName*"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Clean up. */
|
||||||
|
removeDir("${env.WORKSPACE_TMP}/output")
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
/* Mark that a failure occurred. */
|
/* Mark that a failure occurred. */
|
||||||
anyFailure = true
|
anyFailure = true
|
||||||
@@ -231,6 +234,9 @@ pipeline {
|
|||||||
/* Archive resulting artifacts. */
|
/* Archive resulting artifacts. */
|
||||||
archiveArtifacts artifacts: "**/**/$packageName*"
|
archiveArtifacts artifacts: "**/**/$packageName*"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Clean up. */
|
||||||
|
removeDir("${env.WORKSPACE_TMP}/output")
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
/* Mark that a failure occurred. */
|
/* Mark that a failure occurred. */
|
||||||
anyFailure = true
|
anyFailure = true
|
||||||
|
|||||||
Reference in New Issue
Block a user