Interface PostProjectAnalysisTask.ProjectAnalysis

  • Enclosing interface:
    PostProjectAnalysisTask

    public static interface PostProjectAnalysisTask.ProjectAnalysis
    Since:
    5.5
    • Method Detail

      • getOrganization

        java.util.Optional<Organization> getOrganization()
        When organizations are enabled in SonarQube, the organization the project belongs to.
        Returns:
        a non empty value when organizations are enabled, otherwise empty
        Since:
        7.0
      • getCeTask

        CeTask getCeTask()
        Details of the Compute Engine task in which the project analysis was run.
      • getProject

        Project getProject()
        Details of the analyzed project.
      • getBranch

        java.util.Optional<Branch> getBranch()
        The branch that is being analyzed.
        Since:
        6.6
      • getQualityGate

        @CheckForNull
        QualityGate getQualityGate()
        Status and details of the Quality Gate of the project (if any was configured on the project).
      • getAnalysis

        java.util.Optional<Analysis> getAnalysis()
        Analysis containing the UUID of the analysis and the date

        This Analysis can be missing when the status of the task is FAILED.

      • getScmRevisionId

        @Deprecated
        java.lang.String getScmRevisionId()
        Deprecated.
        in 7.8, replaced by Analysis#getRevision()
        Revision Id that has been analysed. May return null.
        Since:
        7.6
        See Also:
        getAnalysis()