@Override public int hashCode() { final int prime = 31; int result = super.hashCode(); result = prime * result + ((actions == null) ? 0 : actions.hashCode()); result = prime * result + ((artifacts == null) ? 0 : artifacts.hashCode()); result = prime * result + (building ? 1231 : 1237); result = prime * result + ((builtOn == null) ? 0 : builtOn.hashCode()); result = prime * result + ((changeSet == null) ? 0 : changeSet.hashCode()); result = prime * result + ((changeSets == null) ? 0 : changeSets.hashCode()); result = prime * result + ((consoleOutputHtml == null) ? 0 : consoleOutputHtml.hashCode()); result = prime * result + ((consoleOutputText == null) ? 0 : consoleOutputText.hashCode()); result = prime * result + ((culprits == null) ? 0 : culprits.hashCode()); result = prime * result + ((description == null) ? 0 : description.hashCode()); result = prime * result + ((displayName == null) ? 0 : displayName.hashCode()); result = prime * result + (int) (duration ^ (duration >>> 32)); result = prime * result + (int) (estimatedDuration ^ (estimatedDuration >>> 32)); result = prime * result + ((fullDisplayName == null) ? 0 : fullDisplayName.hashCode()); result = prime * result + ((id == null) ? 0 : id.hashCode()); result = prime * result + ((this.result == null) ? 0 : this.result.hashCode()); result = prime * result + (int) (timestamp ^ (timestamp >>> 32)); return result; } }
bentenSlackFields.add(new BentenSlackField("Last Build Status", buildResult.toString(), true)); if(buildResult.equals(BuildResult.SUCCESS)) bentenSlackAttachment.setColor("GOOD"); else if(buildResult.equals(BuildResult.FAILURE)) bentenSlackAttachment.setColor("DANGER"); else if(buildResult.equals(BuildResult.UNSTABLE)) bentenSlackAttachment.setColor("WARNING"); else
if (buildIdToStop != null) { buildToStop.Stop(); ans = buildToStop.details().getResult().equals(BuildResult.ABORTED); } else { VerigreenLogger.get().error(