Skip to content

Commit 95e598f

Browse files
committed
chore: update curl step SD-1405
1 parent e3d34ab commit 95e598f

File tree

3 files changed

+15
-8
lines changed

3 files changed

+15
-8
lines changed

charts/tekton-pipelines/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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.5
9+
version: 2.2.14-dev.6
1010

1111
maintainers:
1212
- url: https://www.saritasa.com/

charts/tekton-pipelines/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ saritasa-tekton-pipelines
3131

3232
## `chart.version`
3333

34-
![Version: 2.2.14-dev.5](https://img.shields.io/badge/Version-2.2.14-dev.5-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
34+
![Version: 2.2.14-dev.6](https://img.shields.io/badge/Version-2.2.14-dev.6-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
3535

3636
## Maintainers
3737

charts/tekton-pipelines/templates/common/tasks/slack-notification.yaml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,27 +64,34 @@ spec:
6464
>> $(results.failed_info.path)
6565
done
6666
67+
if [ -s "$(results.failed_info.path)" ]; then
68+
failed_pod_name=$(cat $(results.failed_info.path) | jq '.pod' -r)
69+
failed_task=$(cat $(results.failed_info.path) | jq '.task' -r)
70+
failed_step=$(cat $(results.failed_info.path) | jq '.step' -r)
71+
72+
echo $failed_task > $(results.failed_task.path)
73+
echo $failed_step > $(results.failed_step.path)
74+
echo $failed_pod_name > $(results.failed_pod_name.path)
75+
fi
76+
6777
- name: get-failed-logs
6878
image: {{ .Values.images.curl | default "curlimages/curl:latest"}}
6979
imagePullPolicy: {{ .Values.imagePullPolicy }}
7080
script: |
7181
#!/bin/sh
7282
73-
failed_pod_name=$(cat $(results.failed_info.path) | jq '.pod' -r)
74-
failed_task=$(cat $(results.failed_info.path) | jq '.task' -r)
75-
failed_step=$(cat $(results.failed_info.path) | jq '.step' -r)
83+
failed_pod_name=$(cat $(results.failed_pod_name.path))
84+
failed_step=$(cat $(results.failed_step.path))
7685
7786
if [ -n "$failed_pod_name" ] && [ -n "$failed_step" ]; then
7887
# Fetch logs and save info about the failed task
7988
echo "Fetching logs for failed task: ${failed_task}, step: ${failed_step}"
8089
curl -sk "https://tekton-logs-server.ci.svc.cluster.local/logs/ci/${failed_pod_name}/step-${failed_step}" | tail -c 1982 > $(results.logs.path)
81-
echo $failed_task > $(results.failed_task.path)
82-
echo $failed_step > $(results.failed_step.path)
8390
else
8491
echo 'No failed taskRuns'
8592
fi
8693
87-
sleep 1000
94+
sleep 300
8895
8996
- name: notification
9097
image: {{ .Values.images.slack | default "cloudposse/slack-notifier:latest"}}

0 commit comments

Comments
 (0)