【发布时间】:2015-03-25 02:51:05
【问题描述】:
当我在文件中键入“build*.jar”以归档在归档工件中归档时,警告红色消息“build*.jar”与任何内容都不匹配:“build”存在但不是“build*.jar”出现。
我忽略它并构建后,出现以下错误:
Archiving artifacts
ERROR: No artifacts found that match the file pattern "build\*.jar". Configuration error?
ERROR: 'build\*.jar' doesn't match anything: 'build' exists but not 'build\*.jar'
Build step 'Archive the artifacts' changed build result to FAILURE
Finished: FAILURE
【问题讨论】:
-
请尝试 *\build.jar ... ** 指向您的工作区
-
@DevD 只是一个更正:
**表示any preceding path,其中可能包括$WORKSPACE,但不限于此。 -
所以如果我输入 'build/*.jar' jar 文件应该出现在路径 'C:\Program Files (x86)\Jenkins\workspace\JavaTest\build' ??
-
是的,没错。
标签: java deployment jenkins jar archive