提交 f4311e49 编写于 作者: P pgweiss

Don't abort the build just because we hit an error when trying to explain why...

Don't abort the build just because we hit an error when trying to explain why there was no matching artifact.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@31302 71c3de6d-444a-0410-be80-ed276b4c234a
上级 4733e815
......@@ -119,7 +119,12 @@ public class ArtifactArchiver extends Recorder {
// If the build failed, don't complain that there was no matching artifact.
// The build probably didn't even get to the point where it produces artifacts.
listenerWarnOrError(listener, Messages.ArtifactArchiver_NoMatchFound(artifacts));
String msg = ws.validateAntFileMask(artifacts);
String msg = null;
try {
msg = ws.validateAntFileMask(artifacts);
} catch (Exception e) {
listenerWarnOrError(listener, e.getMessage());
}
if(msg!=null)
listenerWarnOrError(listener, msg);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册