com.sgoertzen.sonarbreak.qualitygate.Result Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sonar-break-maven-plugin Show documentation
Show all versions of sonar-break-maven-plugin Show documentation
A maven plugin that will fail a maven build if sonar finds errors with your project.
package com.sgoertzen.sonarbreak.qualitygate;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import org.joda.time.DateTime;
import java.util.List;
/**
* The results from a sonar query for this maven run
*/
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonDeserialize(using = ResultDeserializer.class)
public class Result {
private String id;
private String key;
private String name;
private DateTime datetime;
private String version;
private List conditions;
private ConditionStatus status;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getKey() {
return key;
}
public void setKey(String key) {
this.key = key;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public DateTime getDatetime() {
return datetime;
}
public void setDatetime(DateTime datetime) {
this.datetime = datetime;
}
public String getVersion() {
return version;
}
public void setVersion(String version) {
this.version = version;
}
public List getConditions() {
return conditions;
}
public void setConditions(List conditions) {
this.conditions = conditions;
}
public ConditionStatus getStatus() {
return status;
}
public void setStatus(ConditionStatus status) {
this.status = status;
}
}