summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2020-11-02 18:48:58 +0100
committerThomas Haller <thaller@redhat.com>2020-11-02 18:51:45 +0100
commitaffff881e2c6a732abebb427c24588784386eb55 (patch)
tree7464903b0f6e139c4d7d1c485e11df9838007f99
parent1df683587a07d0560e574b71bf9c20b7090d6965 (diff)
downloadNetworkManager-affff881e2c6a732abebb427c24588784386eb55.tar.gz
contrib/release: check whether access to master.gnome.org works before publishing release
-rwxr-xr-xcontrib/fedora/rpm/release.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/contrib/fedora/rpm/release.sh b/contrib/fedora/rpm/release.sh
index 801e07f468..6b23776dba 100755
--- a/contrib/fedora/rpm/release.sh
+++ b/contrib/fedora/rpm/release.sh
@@ -509,10 +509,17 @@ if [ "$RELEASE_MODE" = rc1 ]; then
git checkout -B "$CUR_BRANCH" "$TMP_BRANCH" || die "cannot checkout $CUR_BRANCH"
fi
-do_command git push "$ORIGIN" "${BRANCHES[@]}" || die "failed to to push branches ${BRANCHES[@]} to $ORIGIN"
+if ! [ "$DRY_RUN" = 0 ]; then
+ ssh master.gnome.org true || die "failed to \`ssh master.gnome.org\`"
+fi
for r in "${RELEASE_FILES[@]}"; do
do_command rsync -va --append-verify -P "/tmp/$r" master.gnome.org: || die "failed to rsync \"/tmp/$r\""
+done
+
+do_command git push "$ORIGIN" "${BRANCHES[@]}" || die "failed to to push branches ${BRANCHES[@]} to $ORIGIN"
+
+for r in "${RELEASE_FILES[@]}"; do
do_command ssh master.gnome.org ftpadmin install --unattended "$r" || die "ftpadmin install failed"
done