提交 979497ab 编写于 作者: C CyrusNajmabadi

Only collect archives in the case of aborted or failed runs.

上级 96f2f926
......@@ -58,13 +58,20 @@ static void addWrappers(def myJob) {
static void addArtifactArchiving(def myJob, String patternString, String excludeString) {
myJob.with {
publishers {
archiveArtifacts {
allowEmpty(true)
defaultExcludes(false)
exclude(excludeString)
fingerprint(false)
onlyIfSuccessful(false)
pattern(patternString)
flexiblePublish {
conditionalAction {
status('ABORTED', 'FAILURE')
}
publishers {
archiveArtifacts {
allowEmpty(true)
defaultExcludes(false)
exclude(excludeString)
fingerprint(false)
onlyIfSuccessful(false)
pattern(patternString)
}
}
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册