Klasse WarningsQualityGate

java.lang.Object
hudson.model.AbstractDescribableImpl<io.jenkins.plugins.util.QualityGate>
io.jenkins.plugins.util.QualityGate
io.jenkins.plugins.analysis.core.util.WarningsQualityGate
Alle implementierten Schnittstellen:
Describable<io.jenkins.plugins.util.QualityGate>, Serializable

public class WarningsQualityGate extends io.jenkins.plugins.util.QualityGate
Defines a quality gate based on a specific threshold of issues (total, new, delta) in the current build. After a build has been finished, a set of quality gates will be evaluated and the overall quality gate status will be reported in Jenkins UI.
Autor:
Ullrich Hafner
Siehe auch:
  • Konstruktordetails

    • WarningsQualityGate

      @DataBoundConstructor public WarningsQualityGate(WarningsQualityGate.QualityGateType type)
      Creates a new instance of WarningsQualityGate.
      Parameter:
      type - the type of the quality gate
    • WarningsQualityGate

      public WarningsQualityGate(int threshold, WarningsQualityGate.QualityGateType type, io.jenkins.plugins.util.QualityGate.QualityGateCriticality criticality)
      Creates a new instance of WarningsQualityGate.
      Parameter:
      threshold - the minimum number of issues that fails the quality gate
      type - the type of the quality gate
      criticality - the criticality of the quality gate
  • Methodendetails

    • isUnstable

      public boolean isUnstable()
    • setUnstable

      @DataBoundSetter @Deprecated public void setUnstable(boolean unstable)
      Veraltet.
      use QualityGate.setCriticality(QualityGateCriticality) instead
      Sets the criticality of the quality gate.
      Parameter:
      unstable - the criticality of the quality gate
    • getActualSizeMethodReference

      public Function<IssuesStatistics,Integer> getActualSizeMethodReference()
      Returns the method that should be used to determine the actual number of issues in the build.
      Gibt zurück:
      threshold getter
    • getName

      public String getName()
      Angegeben von:
      getName in Klasse io.jenkins.plugins.util.QualityGate
    • getType

    • equals

      public boolean equals(Object o)
      Setzt außer Kraft:
      equals in Klasse Object
    • hashCode

      public int hashCode()
      Setzt außer Kraft:
      hashCode in Klasse Object