summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-04-05 18:21:29 (GMT)
committerBrad King <brad.king@kitware.com>2022-04-05 19:00:17 (GMT)
commit9a1b301c8564a75bb7781dfb9241c0bf7974f882 (patch)
tree4167358168590e6f301f9c7207bb083ecf1245cf
parentcb44e0d47c2ea63f60688a254f6018a8c435a554 (diff)
downloadCMake-9a1b301c8564a75bb7781dfb9241c0bf7974f882.zip
CMake-9a1b301c8564a75bb7781dfb9241c0bf7974f882.tar.gz
CMake-9a1b301c8564a75bb7781dfb9241c0bf7974f882.tar.bz2
gitlab-ci: add sanity check to upload jobs
Ensure that the upload destination is not empty.
-rw-r--r--.gitlab/upload.yml2
1 files changed, 2 insertions, 0 deletions
diff --git a/.gitlab/upload.yml b/.gitlab/upload.yml
index 88ceba8..20ec483 100644
--- a/.gitlab/upload.yml
+++ b/.gitlab/upload.yml
@@ -16,6 +16,7 @@
- dnf install -y --setopt=install_weak_deps=False rsync openssh-clients
- chmod 400 $RSYNC_BINARY_KEY
- ssh-keygen -y -f $RSYNC_BINARY_KEY > $RSYNC_BINARY_KEY.pub
+ - test -n "$RSYNC_DESTINATION"
- rsync -tv --recursive -e "ssh -i $RSYNC_BINARY_KEY -o StrictHostKeyChecking=no -o LogLevel=ERROR" build/ kitware@cmake.org:$RSYNC_DESTINATION/
variables:
@@ -37,4 +38,5 @@
- dnf install -y --setopt=install_weak_deps=False rsync openssh-clients
- chmod 400 $RSYNC_HELP_KEY
- ssh-keygen -y -f $RSYNC_HELP_KEY > $RSYNC_HELP_KEY.pub
+ - test -n "$RSYNC_DESTINATION"
- rsync -tv --recursive --delete -e "ssh -i $RSYNC_HELP_KEY -o StrictHostKeyChecking=no -o LogLevel=ERROR" build/html/ kitware@cmake.org:$RSYNC_DESTINATION/