java.lang.Object
org.waveywaves.jenkins.plugins.tekton.client.logwatch.TaskRunLogWatch
All Implemented Interfaces:
Runnable

public class TaskRunLogWatch extends Object implements Runnable
  • Constructor Details

    • TaskRunLogWatch

      public TaskRunLogWatch(io.fabric8.kubernetes.client.KubernetesClient kubernetesClient, io.fabric8.tekton.client.TektonClient tektonClient, io.fabric8.tekton.pipeline.v1beta1.TaskRun taskRun, OutputStream consoleLogger)
  • Method Details

    • getException

      public Exception getException()
      Returns:
      the exception if the task run failed to succeed
    • run

      public void run()
      Specified by:
      run in interface Runnable
    • logTaskRunFailure

      protected void logTaskRunFailure(io.fabric8.tekton.pipeline.v1beta1.TaskRun taskRun)
      Lets log any failures in the task run
      Parameters:
      taskRun - the task run to log
    • logPodFailures

      protected void logPodFailures(io.fabric8.kubernetes.api.model.Pod pod)
      Lets check if the pod completed successfully otherwise log a failure message
      Parameters:
      pod - the pod to log
    • logMessage

      protected void logMessage(String text)