Uploaded image for project: 'OpenShift Pipelines'
  1. OpenShift Pipelines
  2. SRVKP-6276

Validation failed when using spec.results and spec.steps[].results on the same spec

XMLWordPrintable

    • 3
    • False
    • None
    • False
    • Hide
      Fix for task validation error when using both spec.results and spec.steps[].results
      A validation issue has been resolved where defining a Tekton Task with both spec.results and spec.steps[].results caused the Task to fail with a validation error.
      Show
      Fix for task validation error when using both spec.results and spec.steps[].results A validation issue has been resolved where defining a Tekton Task with both spec.results and spec.steps[].results caused the Task to fail with a validation error.
    • 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):

       

       *

              jkhelil abdeljawed khelil
              jkhelil abdeljawed khelil
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: