詹金斯:ArchiveArtifacts-多个不同的文件

时间:2019-02-25 12:57:52

标签: jenkins

Jenkins文档说:

Connection

但是我不清楚您如何添加2个单独的工件。

您是否有2个单独的archiveArtifacts命令? 还是用空格分隔工件文件名?

例如 artifacts You can use wildcards like 'module/dist/**/*.zip'. See the includes attribute of Ant fileset for the exact format. The base directory is the workspace. You can only archive files that are located in your workspace. Type: String

archiveArtifacts artifacts: "my.tar.gz my2.txt", fingerprint: true

https://jenkins.io/doc/pipeline/steps/core/#archiveartifacts-archive-the-artifacts

0 个答案:

没有答案