提交 3cef8497 编写于 作者: S sogabe

[FIXED HUDSON-2764] Show Badge in bug history only when artifacts are redployed successfully

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@13871 71c3de6d-444a-0410-be80-ed276b4c234a
上级 a297ad3e
......@@ -143,7 +143,13 @@ public abstract class MavenAbstractArtifactRecord<T extends AbstractBuild<?,?>>
}
public boolean hasBadge() {
return records!=null && !records.isEmpty();
if (records != null) {
for (final Record record : records) {
if (Result.SUCCESS.equals(record.result))
return true;
}
}
return false;
}
public HistoryWidgetImpl getHistoryWidget() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册