-
Bug
-
Resolution: Unresolved
-
Normal
-
Pipelines 1.16.0, Pipelines 1.15.0
-
3
-
False
-
None
-
False
-
-
-
-
3
-
Pipelines Sprint TekShift 12, Pipelines Sprint TekShift 13, Pipelines Sprint TekShift 14, Pipelines Sprint TekShift 15, Pipelines Sprint TekShift 16, Pipelines Sprint Tekshift 17, Pipelines Sprint TekShift 18, Pipelines Sprint TekShift 19, Pipelines Sprint Pioneers 21
Description of problem:
When defining a Tekton Task that utilizes both spec.results and spec.steps[].results, the Task fails with a validation error. Specifically, the error indicates that the variables defined in spec.steps[].results cannot be accessed correctly within the step scripts, leading to a validation failure.
{{Error from server (BadRequest): error when creating "step-action.yaml": admission webhook "validation.webhook.pipeline.tekton.dev" denied the request: validation failed: non-existent variable in "#!/usr/bin/env sh\nset -x\nSINGLE_COMPONENT_MODE=\"scott\"\n\necho -n \"${SINGLE_COMPONENT_MODE}\" > $(step.results.singleComponentMode.path)\necho -n \"tom\" > $(results.resultsDir.path)\n": spec.steps[0].script }}
https://github.com/tektoncd/pipeline/issues/8255
Prerequisites (if any, like setup, operators/versions):
Steps to Reproduce
# <steps>
Actual results:
Expected results:
Reproducibility (Always/Intermittent/Only Once):
Acceptance criteria:
Definition of Done:
Build Details:
Additional info (Such as Logs, Screenshots, etc):