Package org.sonar.api.ce.posttask
Interface PostProjectAnalysisTask.ProjectAnalysis
-
- Enclosing interface:
- PostProjectAnalysisTask
public static interface PostProjectAnalysisTask.ProjectAnalysis
- Since:
- 5.5
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description java.util.Optional<Analysis>
getAnalysis()
Analysis containing the UUID of the analysis and the datejava.util.Optional<java.util.Date>
getAnalysisDate()
Deprecated.use {@link #getAnalysis().getDate()} insteadjava.util.Optional<Branch>
getBranch()
The branch that is being analyzed.CeTask
getCeTask()
Details of the Compute Engine task in which the project analysis was run.java.util.Date
getDate()
Deprecated.use {@link #getAnalysis().getDate()} instead.java.util.Optional<Organization>
getOrganization()
When organizations are enabled in SonarQube, the organization the project belongs to.Project
getProject()
Details of the analyzed project.QualityGate
getQualityGate()
Status and details of the Quality Gate of the project (if any was configured on the project).ScannerContext
getScannerContext()
Context as defined by scanner throughSensorContext.addContextProperty(String, String)
.java.lang.String
getScmRevisionId()
Deprecated.in 7.8, replaced byAnalysis#getRevision()
-
-
-
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. WhengetAnalysis()
returnsempty
, 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()} insteadDate 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 dateThis Analysis can be missing when the status of the task is
FAILED
.
-
getScannerContext
ScannerContext getScannerContext()
Context as defined by scanner throughSensorContext.addContextProperty(String, String)
. It does not contain the settings used by scanner.- Since:
- 6.1
-
getScmRevisionId
@Deprecated java.lang.String getScmRevisionId()
Deprecated.in 7.8, replaced byAnalysis#getRevision()
Revision Id that has been analysed. May return null.- Since:
- 7.6
- See Also:
getAnalysis()
-
-