Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add exception
  • Loading branch information
mrodm committed May 7, 2025
commit 464b115661222d167f0f8a8581cd9db6a312dee1
10 changes: 10 additions & 0 deletions .buildkite/scripts/cloud-cleanup-oidc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,16 @@ any_resources_to_delete() {
# ⇒ Loading configuration...
# ✓ Succeeded to load configuration
# Scanning resources... ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 0:00:00

# FIXME:: When running with DRY_RUN: false there could be more lines.
# In the case, there is nothing to delete, there is one more line:
# ⇒ Nothing to destroy !
# but there are no examples when resources are deleted to add the required logic
if [[ "${DRY_RUN}" == false ]] ; then
if tail -n 1 ${file} | grep "Nothing to destroy" 2> /dev/null ; then
return 1
fi
fi
number=$(tail -n +4 "${file}" | wc -l)
if [ "${number}" -eq 0 ]; then
return 1
Expand Down
10 changes: 10 additions & 0 deletions .buildkite/scripts/cloud-cleanup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,16 @@ any_resources_to_delete() {
# ⇒ Loading configuration...
# ✓ Succeeded to load configuration
# Scanning resources... ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 0:00:00

# FIXME:: When running with DRY_RUN: false there could be more lines.
# In the case, there is nothing to delete, there is one more line:
# ⇒ Nothing to destroy !
# but there are no examples when resources are deleted to add the required logic
if [[ "${DRY_RUN}" == false ]] ; then
if tail -n 1 ${file} | grep "Nothing to destroy" 2> /dev/null ; then
return 1
fi
fi
number=$(tail -n +4 "${file}" | wc -l)
if [ "${number}" -eq 0 ]; then
return 1
Expand Down