Skip to content

Commit

Permalink
Skip bundle list files that have not been created
Browse files Browse the repository at this point in the history
Follow up to #1112, let's not confuse folk by printing:

```
cat: /workspace/source/task-bundle-list-konflux-ci: No such file or directory
cat: /workspace/source/task-bundle-list-appstudio: No such file or directory
```

In the TaskRun logs. Those files do not exist if no Tasks were changed.

Reference: https://issues.redhat.com/browse/EC-705
  • Loading branch information
zregvart committed Jul 6, 2024
1 parent 12f31d3 commit 0729cc7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .tekton/push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,12 @@ spec:
DATA_BUNDLE_TAG=$(date '+%s')
export DATA_BUNDLE_REPO DATA_BUNDLE_TAG
.tekton/scripts/build-acceptable-bundles.sh "$@"
list=()
for f in "$@"; do
[[ -f "$f" ]] && list+=("$f")
done
.tekton/scripts/build-acceptable-bundles.sh "${list[*]}"
echo -n "${DATA_BUNDLE_TAG}" > acceptable_bundle_tag
args:
Expand Down

0 comments on commit 0729cc7

Please sign in to comment.