*/
package org.sonar.api.ce;
-import com.google.common.annotations.Beta;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
-@Beta
public @interface ComputeEngineSide {
}
*/
package org.sonar.api.ce.posttask;
-import com.google.common.annotations.Beta;
-
/**
* @since 5.5
*/
-@Beta
public interface CeTask {
/**
* Id of the Compute Engine task.
*/
package org.sonar.api.ce.posttask;
-import com.google.common.annotations.Beta;
import java.util.Date;
import javax.annotation.CheckForNull;
import org.sonar.api.ExtensionPoint;
*/
@ExtensionPoint
@ComputeEngineSide
-@Beta
public interface PostProjectAnalysisTask {
/**
* This method is called whenever the processing of a Project analysis has finished, whether successfully or not.
/**
* @since 5.5
*/
- @Beta
interface ProjectAnalysis {
/**
* Details of the Compute Engine task in which the project analysis was run.
*/
package org.sonar.api.ce.posttask;
-import com.google.common.annotations.Beta;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Date;
*
* @since 5.5
*/
-@Beta
public class PostProjectAnalysisTaskTester {
private static final String DATE_CAN_NOT_BE_NULL = "date cannot be null";
private static final String PROJECT_CAN_NOT_BE_NULL = "project cannot be null";
}
- @Beta
public static final class CeTaskBuilder {
private static final String ID_CAN_NOT_BE_NULL = "id cannot be null";
}
}
- @Beta
public static final class ProjectBuilder {
private static final String UUID_CAN_NOT_BE_NULL = "uuid cannot be null";
private static final String KEY_CAN_NOT_BE_NULL = "key cannot be null";
}
}
- @Beta
public static final class QualityGateBuilder {
private static final String ID_CAN_NOT_BE_NULL = "id cannot be null";
private static final String NAME_CAN_NOT_BE_NULL = "name cannot be null";
}
}
- @Beta
public static final class ConditionBuilder {
private static final String METRIC_KEY_CAN_NOT_BE_NULL = "metricKey cannot be null";
private static final String OPERATOR_CAN_NOT_BE_NULL = "operator cannot be null";
*/
package org.sonar.api.ce.posttask;
-import com.google.common.annotations.Beta;
-
/**
* @since 5.5
*/
-@Beta
public interface Project {
String getUuid();
*/
package org.sonar.api.ce.posttask;
-import com.google.common.annotations.Beta;
import java.util.Collection;
import javax.annotation.CheckForNull;
import org.sonar.api.measures.Metric;
/**
* @since 5.5
*/
-@Beta
public interface QualityGate {
/**
* The unique identifier of the Quality Gate.
*/
Collection<Condition> getConditions();
- @Beta
enum Status {
/** at least one threshold is defined, no threshold is reached */
OK,
ERROR
}
- @Beta
interface Condition {
/**
* Evaluation status of this condition
* @see Metric#getType()
*/
String getValue();
-
+
}
/**
* Quality Gate condition operator.
*/
- @Beta
enum Operator {
EQUALS, NOT_EQUALS, GREATER_THAN, LESS_THAN
}
/**
* Quality gate condition evaluation status.
*/
- @Beta
enum EvaluationStatus {
/**
* No measure found or measure had no value. The condition has not been evaluated and therefor ignored in