<p>I have a problem where i need to trigger multiple Pipelinerun's at same time where the runs will take longer the 1 hour. The global timeout for the PipelineRun is 1 hours by default so it fails. The team managing the Openshift cluster does not want to change the global timeout so I have to override it in some way.</p>
<p>The resources I am using is an EventListener, TriggerBinding, TriggerTemplate, Pipeline and PipelineRun.</p>
<p>I have tried to set a timeout on the Pipeline tasks like:</p>
<pre><code>      runAfter:
        - fetch-repository
      taskRef:
        kind: ClusterTask
        name: buildah
      timeout: &quot;3h0m0s&quot;
</code></pre>
<p>but the PipelineRun timeout seems to have precedence so it does not work.</p>
<ul>
<li>Openshift version: 4.9.35</li>
<li>K8s version: v1.22.8</li>
<li>Tekton seems to be
installed with Openshift and cannot find which version but probably
very new.</li>
</ul>
<p>Any ideas?</p>

linkebon
<p>You can specify a timeout in the PipelineRun:</p>
<pre><code>spec:
  ...
  timeout: 12h0m0s
</code></pre>
<p>If you set it to 0, it will fail immediately upon encountering an error. For now it works on OpenShift Pipelines, but it might get deprecated <a href="https://tekton.dev/docs/pipelines/pipelineruns/#configuring-a-failure-timeout" rel="nofollow noreferrer">as in Tekton</a> (not fully deprecated, just syntax change).</p>
