-
Bug
-
Resolution: Done
-
Major
-
None
-
Pipelines 1.17.0, Pipelines 1.16.2
-
None
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
- 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):
*
- clones
-
SRVKP-7063 UI: results not displayed when pipeline run fails
-
- Closed
-
- links to