diff --git a/src/main/java/io/jenkins/plugins/checks/BuildStatusChecksPublisher.java b/src/main/java/io/jenkins/plugins/checks/BuildStatusChecksPublisher.java index b9a7892e..0e52ed59 100644 --- a/src/main/java/io/jenkins/plugins/checks/BuildStatusChecksPublisher.java +++ b/src/main/java/io/jenkins/plugins/checks/BuildStatusChecksPublisher.java @@ -35,15 +35,19 @@ private static void publish(final ChecksPublisher publisher, final ChecksStatus /** * {@inheritDoc} + * *
* Listens to the queue and publishes checks in "queued" state for entering items. + *
*/ @Extension public static class JobScheduledListener extends QueueListener { /** * {@inheritDoc} + * ** When a job enters queue, creates the check on "queued". + *
*/ @Override public void onEnterWaiting(final Queue.WaitingItem wi) { @@ -58,8 +62,10 @@ public void onEnterWaiting(final Queue.WaitingItem wi) { /** * {@inheritDoc} + * ** Listens to the SCM checkout and publishes checks. + *
*/ @Extension public static class JobCheckoutListener extends SCMListener { @@ -67,6 +73,7 @@ public static class JobCheckoutListener extends SCMListener { * {@inheritDoc} ** When checkout finished, update the check to "in progress". + *
*/ @Override public void onCheckout(final Run, ?> run, final SCM scm, final FilePath workspace, @@ -78,15 +85,19 @@ public void onCheckout(final Run, ?> run, final SCM scm, final FilePath worksp /** * {@inheritDoc} + * ** Listens to the run and publishes checks. + *
*/ @Extension public static class JobCompletedListener extends RunListener* When a job completes, completes the check. + *
*/ @Override public void onCompleted(final Run run, @Nullable final TaskListener listener) {