private final Phases phases;
private final InitializersExecutor initializersExecutor;
private final SensorsExecutor sensorsExecutor;
+ private final PostJobsExecutor postJobsExecutor;
private final SensorContext sensorContext;
private final DefaultIndex index;
private final ProjectInitializer pi;
private final LocalIssueTracking localIssueTracking;
private final PublishReportJob publishReportJob;
- public DatabaseLessPhaseExecutor(Phases phases, InitializersExecutor initializersExecutor, SensorsExecutor sensorsExecutor,
+ public DatabaseLessPhaseExecutor(Phases phases, InitializersExecutor initializersExecutor, PostJobsExecutor postJobsExecutor, SensorsExecutor sensorsExecutor,
SensorContext sensorContext, DefaultIndex index,
EventBus eventBus, ProjectInitializer pi, FileSystemLogger fsLogger, IssuesReports jsonReport, DefaultModuleFileSystem fs, QProfileVerifier profileVerifier,
IssueExclusionsLoader issueExclusionsLoader, LocalIssueTracking localIssueTracking, PublishReportJob publishReportJob) {
this.phases = phases;
this.initializersExecutor = initializersExecutor;
+ this.postJobsExecutor = postJobsExecutor;
this.sensorsExecutor = sensorsExecutor;
this.sensorContext = sensorContext;
this.index = index;
localIssueTracking();
issuesReport();
publishReportJob();
+ if (phases.isEnabled(Phases.Phase.POSTJOB)) {
+ postJobsExecutor.execute(sensorContext);
+ }
}
cleanMemory();