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).
      • getDate

        @Deprecated
        java.util.Date getDate()
        Deprecated.
        use {@link #getAnalysis().getDate()} instead. When getAnalysis() returns empty, the current date will be returned.
        Date of the analysis.

        This date is the same as the date of the project analysis report and the snapshot.

      • getAnalysisDate

        @Deprecated
        java.util.Optional<java.util.Date> getAnalysisDate()
        Deprecated.
        use {@link #getAnalysis().getDate()} instead
        Date of the analysis.

        This date is the same as the date of the project analysis report and therefore as the analysis in DB. It can be missing when the status of the task is FAILED.

      • 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()