File tree Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ type: application
66# This is the chart version. This version number should be incremented each time you make changes
77# to the chart and its templates, including the app version.
88# Versions are expected to follow Semantic Versioning (https://semver.org/)
9- version : 2.2.14-dev.13
9+ version : 2.2.14-dev.14
1010
1111maintainers :
1212 - url : https://www.saritasa.com/
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ saritasa-tekton-pipelines
3131
3232## ` chart.version `
3333
34- ![ Version: 2.2.14-dev.13 ] ( https://img.shields.io/badge/Version-2.2.14-dev.13 -informational?style=flat-square ) ![ Type: application] ( https://img.shields.io/badge/Type-application-informational?style=flat-square )
34+ ![ Version: 2.2.14-dev.14 ] ( https://img.shields.io/badge/Version-2.2.14-dev.14 -informational?style=flat-square ) ![ Type: application] ( https://img.shields.io/badge/Type-application-informational?style=flat-square )
3535
3636## Maintainers
3737
Original file line number Diff line number Diff line change 7171 failed_task=$(cat $(results.failed_info.path) | jq '.task' -r)
7272 failed_step=$(cat $(results.failed_info.path) | jq '.step' -r)
7373
74+ echo $failed_pod_name > $(results.failed_pod_name.path)
7475 echo $failed_task > $(results.failed_task.path)
7576 echo $failed_step > $(results.failed_step.path)
76- echo $failed_pod_name > $(results.failed_pod_name.path)
7777 fi
7878
7979 - name : get-failed-logs
@@ -82,14 +82,12 @@ spec:
8282 script : |
8383 #!/bin/sh
8484
85- failed_pod_name=$(cat $(results.failed_pod_name.path))
86- failed_step=$(cat $(results.failed_step.path))
87-
88- if [ -n "$failed_pod_name" ] && [ -n "$failed_step" ]; then
85+ if [ -s "$(results.failed_pod_name.path)" ] && [ -s "$(results.failed_step.path)" ]; then
8986 # Fetch logs and save info about the failed task
9087 echo "Fetching logs for failed step: ${failed_step}"
9188 until [ -s "$(results.logs.path)" ]
9289 do
90+ # It takes time for logs to appear, until then curl will return an empty string
9391 sleep 5
9492 curl -sk "https://tekton-logs-server.ci.svc.cluster.local/logs/ci/${failed_pod_name}/step-${failed_step}" | tail -c 1982 > $(results.logs.path)
9593 done
You can’t perform that action at this time.
0 commit comments