schutzbot/run_cloud_cleaner: pass BRANCH_NAME instead of CHANGE_ID

CHANGE_ID is unset in master branch. Use BRANCH_NAME instead.
This commit is contained in:
Martin Sehnoutka 2020-10-14 15:21:09 +02:00 committed by Ondřej Budai
parent 7a2f72281e
commit 6badebef4f

View file

@ -1,7 +1,7 @@
#!/bin/bash
set -euo pipefail
CLEANER_CMD="env $(cat "$AZURE_CREDS") CHANGE_ID=$CHANGE_ID BUILD_ID=$BUILD_ID DISTRO_CODE=$DISTRO_CODE /usr/libexec/osbuild-composer/cloud-cleaner"
CLEANER_CMD="env $(cat "$AZURE_CREDS") BRANCH_NAME=$BRANCH_NAME BUILD_ID=$BUILD_ID DISTRO_CODE=$DISTRO_CODE /usr/libexec/osbuild-composer/cloud-cleaner"
echo "🧹 Running the cloud cleaner"
$CLEANER_CMD