Class SonarQubeCheckPeriodicWork
- java.lang.Object
-
- java.util.TimerTask
-
- hudson.triggers.SafeTimerTask
-
- hudson.model.PeriodicWork
-
- hudson.model.AsyncPeriodicWork
-
- io.jenkins.plugins.devopsportal.workers.SonarQubeCheckPeriodicWork
-
- All Implemented Interfaces:
ExtensionPoint
,Runnable
@Extension public class SonarQubeCheckPeriodicWork extends AsyncPeriodicWork
Scheduled task that monitor a SonarQube server.- Author:
- RĂ©mi BELLO <remi@evolya.fr>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hudson.triggers.SafeTimerTask
SafeTimerTask.ExceptionRunnable
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
-
Fields inherited from class hudson.model.AsyncPeriodicWork
name
-
Fields inherited from class hudson.model.PeriodicWork
DAY, HOUR, logger, MIN
-
-
Constructor Summary
Constructors Constructor Description SonarQubeCheckPeriodicWork()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
execute(TaskListener listener)
ApplicationBuildStatus.DescriptorImpl
getBuildStatusDescriptor()
long
getRecurrencePeriod()
static void
push(String jobName, String buildNumber, String projectKey, QualityAuditActivity activity, String sonarUrl, String sonarToken, String applicationName, String applicationVersion, String applicationComponent, boolean acceptInvalidCertificate)
-
Methods inherited from class hudson.model.AsyncPeriodicWork
createListener, doRun, getErrorLoggingLevel, getLogFile, getNormalLoggingLevel, getSlowLoggingLevel
-
Methods inherited from class hudson.model.PeriodicWork
all, getInitialDelay, init
-
Methods inherited from class hudson.triggers.SafeTimerTask
getLogsRoot, of, run
-
Methods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
-
-
-
-
Method Detail
-
getRecurrencePeriod
public long getRecurrencePeriod()
- Specified by:
getRecurrencePeriod
in classPeriodicWork
-
getBuildStatusDescriptor
public ApplicationBuildStatus.DescriptorImpl getBuildStatusDescriptor()
-
execute
protected void execute(@NonNull TaskListener listener) throws IOException, InterruptedException
- Specified by:
execute
in classAsyncPeriodicWork
- Throws:
IOException
InterruptedException
-
push
public static void push(@NonNull String jobName, @NonNull String buildNumber, @NonNull String projectKey, @NonNull QualityAuditActivity activity, @NonNull String sonarUrl, @NonNull String sonarToken, @NonNull String applicationName, @NonNull String applicationVersion, @NonNull String applicationComponent, boolean acceptInvalidCertificate)
-
-