From d032902d20378b31c0cf0fc6d49c8b066b6f5e8d Mon Sep 17 00:00:00 2001 From: Bo-Chun Louis Chen <louistw@uab.edu> Date: Thu, 6 Jul 2023 16:22:22 -0500 Subject: [PATCH] TEST --- .gitlab-ci.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 06141459..a109119d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -187,9 +187,17 @@ test: - > curl --retry 10 --retry-delay 20 --retry-connrefused https://knightly.rc.uab.edu/Shibboleth.sso/Metadata --resolve knightly.rc.uab.edu:443:$FLOATING_IP -kf || FAILED=true + - | + if [ $CI_PIPELINE_SOURCE == 'merge_request_event' ]; then + ssh -o StrictHostKeyChecking=no acctsvc@$FLOATING_IP '[ $(mount | grep "type nfs" | wc -l) -eq 6 ]' || FAILED=true + elif [ $CI_PIPELINE_SOURCE == 'schedule' ]; then + cp "$SSH_KNOWN_HOSTS" ~/.ssh/known_hosts + chmod 644 ~/.ssh/known_hosts + ssh acctsvc@$FLOATING_IP '[ $(mount | grep "type nfs" | wc -l) -eq 6 ]' || FAILED=true + fi - > - ssh -o StrictHostKeyChecking=no acctsvc@$FLOATING_IP '[ $(mount | grep "type nfs" | wc -l) -eq 6 ]' - || FAILED=true + echo "PASS" + && FAILED=true - | if [ "$FAILED" = true ]; then openstack server delete $NEW_INSTANCE_ID -- GitLab