归档工件
Archive artifacts
"Archive the artifacts" Jenkins post 构建操作是 运行 5 分钟:
21:58:26 WARN: No artifacts found that match the file pattern "direct/path/to/non-existing.artifact". Configuration error?
22:03:55 WARN: ?direct/path/to/non-existing.artifact? doesn?t match anything: ?direct? exists but not ?direct/path/to/non-existing.artifact?
这不是配置错误,如果没有生成工件,我只想跳过工件归档。有没有办法做到这一点?
对这种现象有一些已知的解释吗?我假设 Jenkins 尝试在工作区中搜索类似于 pattern 的东西,并且由于工作区很大,根据算法,理论上搜索可能需要 5 分钟。
您可以使用 Flexible Publish 插件来设置 post-build 条件。将其配置为仅在构建成功或您的条件恰好是
时才执行"Archive Artifacts"
"Archive the artifacts" Jenkins post 构建操作是 运行 5 分钟:
21:58:26 WARN: No artifacts found that match the file pattern "direct/path/to/non-existing.artifact". Configuration error?
22:03:55 WARN: ?direct/path/to/non-existing.artifact? doesn?t match anything: ?direct? exists but not ?direct/path/to/non-existing.artifact?
这不是配置错误,如果没有生成工件,我只想跳过工件归档。有没有办法做到这一点? 对这种现象有一些已知的解释吗?我假设 Jenkins 尝试在工作区中搜索类似于 pattern 的东西,并且由于工作区很大,根据算法,理论上搜索可能需要 5 分钟。
您可以使用 Flexible Publish 插件来设置 post-build 条件。将其配置为仅在构建成功或您的条件恰好是
时才执行"Archive Artifacts"