Skip to content

Commit

Permalink
Updated deploy.sh script to include RHEL 10 scheduled pipeline from o…
Browse files Browse the repository at this point in the history
…sbuild-composer.
  • Loading branch information
narmaku committed Dec 11, 2024
1 parent bb425de commit 1a7bb1c
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions schutzbot/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,15 @@ function get_last_passed_commit {
base_curl="curl --header PRIVATE-TOKEN:${GITLAB_API_TOKEN}"

# To get the schedule id use the ../pipeline_schedule endpoint
if [[ ${VERSION_ID%.*} == "8" ]]; then
# RHEL 8 scheduled pipeline id
schedule_id="233735"
else
if [[ ${VERSION_ID%.*} == "9" ]]; then
# RHEL 9 scheduled pipeline id
schedule_id="233736"
elif [[ ${VERSION_ID%.*} == "10" ]]; then
# RHEL 10 scheduled pipeline id (FYI - it was used for RHEL 8 before)
schedule_id="233735"
else
echo "No scheduled pipeline defined for RHEL $VERSION_ID"
exit 1
fi

# Last executed pipeline ID
Expand Down

0 comments on commit 1a7bb1c

Please sign in to comment.