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

Result with json is not accepted

XMLWordPrintable

    • 1
    • False
    • Hide

      None

      Show
      None
    • False
    • Pipelines Sprint 251

      Description of problem:

      Applying:

      apiVersion: tekton.dev/v1beta1
      kind: PipelineRun
      metadata:
        name: test-results
      spec:
        pipelineSpec:
          results:
            - name: abc
              value: "$(tasks.xxx.results.abc)"
          tasks:
          - name: xxx
            taskSpec:
              results:
                - name: abc
              steps:
              - name: update-sa
                image: registry.redhat.io/openshift4/ose-cli:v4.11
                script: |
                  echo '{}' >  $(results.abc.path)
       

      PipelineRun fails - 
      missmatched Types for these results, map[abc:[string string]]

       

      The same with `echo '{"abc": "yyy"}' >  $(results.abc.path)`

      Prerequisites (if any, like setup, operators/versions):

      OpenShift Pipelines 1.9.1

      Steps to Reproduce

      1. <steps>

      Actual results:

      Expected results:

      Reproducibility (Always/Intermittent/Only Once):

      Build Details:

      Additional info (Such as Logs, Screenshots, etc):

        1. result_json_4_14_taskrun.png
          result_json_4_14_taskrun.png
          64 kB
        2. result_json_4_14.png
          result_json_4_14.png
          149 kB
        3. result_json.png
          result_json.png
          51 kB

              Unassigned Unassigned
              mkovarik@redhat.com Michal Kovarik (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: