You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's currently possible to check individual tasks's execution status in a pipeline's finally, but seemingly not the pipeline's execution status as a whole. One could imagine this is a pretty common usecase, as acting on the pipeline's result would make control flow easier as checking each individual task's execution status doesn't scale with larger pipelines. Having a single field for the pipeline result that the user could combine with when expressions would make a pretty user-friendly way clean up after a pipeline depending on the results.
This feature request suggests adding a variable binding to the pipeline that is accessible from a pipeline's "finally". For example context.pipelineRun.status or similar.
Use case
We're trying to implement our first pipeline using the github-set-status task. Roughly the idea is to set the github commit status to pending when the pipeline starts, do some stuff, and whenever the pipeline fails sets the github commit status to failed. The latter I just can't seem to figure out.
I would like to do something like the following (some parts omitted for brevity):
From the documentation it's unclear what the idiomatic way to fetch pipeline execution status in finally is. I looked for some time without finding it, apologies if I missed something obvious.
If this feature is hard to implement, then it may be wise to document a workaround under Adding finally to the Pipeline in the interim.
The text was updated successfully, but these errors were encountered:
Feature request
It's currently possible to check individual tasks's execution status in a pipeline's finally, but seemingly not the pipeline's execution status as a whole. One could imagine this is a pretty common usecase, as acting on the pipeline's result would make control flow easier as checking each individual task's execution status doesn't scale with larger pipelines. Having a single field for the pipeline result that the user could combine with when expressions would make a pretty user-friendly way clean up after a pipeline depending on the results.
This feature request suggests adding a variable binding to the pipeline that is accessible from a pipeline's "finally". For example
context.pipelineRun.status
or similar.Use case
We're trying to implement our first pipeline using the github-set-status task. Roughly the idea is to set the github commit status to pending when the pipeline starts, do some stuff, and whenever the pipeline fails sets the github commit status to failed. The latter I just can't seem to figure out.
I would like to do something like the following (some parts omitted for brevity):
From the documentation it's unclear what the idiomatic way to fetch pipeline execution status in finally is. I looked for some time without finding it, apologies if I missed something obvious.
If this feature is hard to implement, then it may be wise to document a workaround under Adding finally to the Pipeline in the interim.
The text was updated successfully, but these errors were encountered: