Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-23924

No results rendered for failed task run

XMLWordPrintable

    • No
    • 1
    • ODC Sprint 3264, ODC Sprint 3265, ODC Sprint 3266, ODC Sprint 3267
    • 4
    • Rejected
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      Previously, failed task rus did not emit results, now they do but the UI still shows "No TaskRun results available due to failure" even though task run's status contains a result.
          

      Version-Release number of selected component (if applicable):

      4.14.3
          

      How reproducible:

      Always with a task run producing a result but failing afterwards
          

      Steps to Reproduce:

          1. Create the pipelinerun below
          2. have a look on its task run
          
      apiVersion: tekton.dev/v1
      kind: Pipeline
      metadata:
        name: hello-pipeline
      spec:
        tasks:
        - name: hello
          taskSpec:
            results:
            - name: greeting1
            steps:
            - name: greet
              image: registry.access.redhat.com/ubi8/ubi-minimal
              script: |
                #!/usr/bin/env bash
                set -e
                echo -n "Hello World!" | tee $(results.greeting1.path)
                exit 1
        results:
        - name: greeting2
          value: $(tasks.hello.results.greeting1)
          

      Actual results:

      No results in UI
          

      Expected results:

      One result should be displayed even though task run failed
          

      Additional info:

      Pipelines 1.13.0
          

              rh-ee-jaclee Jackson Lee
              ppitonak Pavol Pitoňák
              Sanket Pathak Sanket Pathak
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: