Class TaskRunLogWatch
java.lang.Object
org.waveywaves.jenkins.plugins.tekton.client.logwatch.TaskRunLogWatch
- All Implemented Interfaces:
Runnable
-
Constructor Summary
ConstructorsConstructorDescriptionTaskRunLogWatch
(io.fabric8.kubernetes.client.KubernetesClient kubernetesClient, io.fabric8.tekton.client.TektonClient tektonClient, io.fabric8.tekton.pipeline.v1beta1.TaskRun taskRun, OutputStream consoleLogger) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
logMessage
(String text) protected void
logPodFailures
(io.fabric8.kubernetes.api.model.Pod pod) Lets check if the pod completed successfully otherwise log a failure messageprotected void
logTaskRunFailure
(io.fabric8.tekton.pipeline.v1beta1.TaskRun taskRun) Lets log any failures in the task runvoid
run()
-
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
- Returns:
- the exception if the task run failed to succeed
-
run
public void run() -
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
-