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

[release-v1.17.x] UI: results not displayed when pipeline run fails

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • Pipelines 1.17.0, Pipelines 1.16.2
    • UI
    • None
    • 1
    • False
    • None
    • False
    • ODC Sprint 3269

      Description of problem:

      "Output" tab of pipeline run shows error message instead of results when pipeline run failed even though results are available.

      Workaround

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

      OpenShift 4.17
      Pipelines 1.16, 1.17

      Steps to Reproduce

       # Run the following pipeline

      1. Run the pipeline again, comment out line "exit 1"
      apiVersion: tekton.dev/v1
      kind: Pipeline
      metadata:
        name: pipeline-result
      spec:
        tasks:
        - name: generate
          taskSpec:
            results:
            - name: url
            steps:
            - name: generate
              image: registry.access.redhat.com/ubi8/ubi-minimal
              script: |
                echo "https://artifacts.mycompany.com/mypipelinerun/210908-111711/" > $(results.url.path)
                echo "Done"
        - name: test-suite-1
          runAfter:
          - generate
          taskSpec:
            steps:
            - name: test
              image: registry.access.redhat.com/ubi8/ubi-minimal
              script: |
                echo "Done"
        - name: test-suite-2
          runAfter:
          - generate
          taskSpec:
            steps:
            - name: test
              image: registry.access.redhat.com/ubi8/ubi-minimal
              script: |
                #echo "Done"
                exit 1
        finally:
        - name: cleanup
          taskSpec:
            steps:
            - name: cleanup
              image: registry.access.redhat.com/ubi8/ubi-minimal
              script: |
                echo "Done"
        results:
        - name: artifacts-url
          value: $(tasks.generate.results.url) 
      

       

      Actual results:

      When pipeline run fails, object has the following result

      status:
        results:
          - name: artifacts-url
            value: |
              https://artifacts.mycompany.com/mypipelinerun/210908-111711/
      

      and still, "output" tab shows "No PipelineRun results available due to failure"

      Expected results:

      UI shows results

      Reproducibility (Always/Intermittent/Only Once):

      Always

      Acceptance criteria: 

       

      Definition of Done:

      Build Details:

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

       

       *

              rh-ee-lprabhu Lokananda Prabhu
              rh-ee-lprabhu Lokananda Prabhu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: