<publishers> <hudson.tasks.ArtifactArchiver> <artifacts>install-${BUILD_ID}/*.tar.xz</artifacts> <allowEmptyArchive>false</allowEmptyArchive> <onlyIfSuccessful>true</onlyIfSuccessful> <fingerprint>false</fingerprint> <defaultExcludes>true</defaultExcludes> <caseSensitive>true</caseSensitive> <followSymlinks>false</followSymlinks> </hudson.tasks.ArtifactArchiver> <hudson.plugins.ws__cleanup.WsCleanup plugin="ws-cleanup@0.44"> <patterns> <hudson.plugins.ws__cleanup.Pattern> <pattern>build-*/</pattern> <type>INCLUDE</type> </hudson.plugins.ws__cleanup.Pattern> <hudson.plugins.ws__cleanup.Pattern> <pattern>install-*/</pattern> <type>INCLUDE</type> </hudson.plugins.ws__cleanup.Pattern> </patterns> <deleteDirs>true</deleteDirs> <skipWhenFailed>false</skipWhenFailed> <cleanWhenSuccess>true</cleanWhenSuccess> <cleanWhenUnstable>true</cleanWhenUnstable> <cleanWhenFailure>true</cleanWhenFailure> <cleanWhenNotBuilt>true</cleanWhenNotBuilt> <cleanWhenAborted>true</cleanWhenAborted> <notFailBuild>true</notFailBuild> <cleanupMatrixParent>false</cleanupMatrixParent> <externalDelete/> <disableDeferredWipeout>false</disableDeferredWipeout> </hudson.plugins.ws__cleanup.WsCleanup> </publishers> 这是一段Jenkins job的定义,请把它转成对应的JJB的yaml格式配置文件
时间: 2024-01-06 21:35:31 浏览: 223
对应的JJB的yaml格式配置文件如下所示:
```yaml
- publishers:
- artifact-archiver:
hudson.tasks.ArtifactArchiver:
artifacts: "install-${BUILD_ID}/*.tar.xz"
allowEmptyArchive: false
onlyIfSuccessful: true
fingerprint: false
defaultExcludes: true
caseSensitive: true
followSymlinks: false
- ws-cleanup:
ws-cleanup@0.44:
patterns:
- pattern:
pattern: "build-*/"
type: "INCLUDE"
- pattern:
pattern: "install-*/"
type: "INCLUDE"
deleteDirs: true
skipWhenFailed: false
cleanWhenSuccess: true
cleanWhenUnstable: true
cleanWhenFailure: true
cleanWhenNotBuilt: true
cleanWhenAborted: true
notFailBuild: true
cleanupMatrixParent: false
externalDelete: ""
disableDeferredWipeout: false
```
阅读全文