From 6cd14a680f625b76171fa903e9a7402fe200d9d4 Mon Sep 17 00:00:00 2001 From: Ewoud Kohl van Wijngaarden Date: Fri, 10 Mar 2023 18:09:19 +0100 Subject: [PATCH] Add a script to wait for packaging to complete During the release process there's a step where the release engineer needs to wait for packaging to complete. This uses the existing ci-jobs functionality to poll a job. This allows a release engineer to script things further, like: ./wait-packaging && ./download_rpms --- wait-packaging | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 wait-packaging diff --git a/wait-packaging b/wait-packaging new file mode 100755 index 0000000..53d83e2 --- /dev/null +++ b/wait-packaging @@ -0,0 +1,12 @@ +#!/bin/bash -e + +. settings + +if [[ $PROJECT == pulpcore ]] ; then + ./ci-jobs poll "pulpcore-packaging-rpm-${VERSION}-release" +else + ./ci-jobs poll "foreman-packaging-deb-${FOREMAN_VERSION}-release" & + ./ci-jobs poll "foreman-packaging-rpm-${FOREMAN_VERSION}-release" & + + wait +fi