Skip to content
Snippets Groups Projects
Commit de2e9252 authored by Bo-Chun Chen's avatar Bo-Chun Chen
Browse files

Add ssh priv key to ssh command

parent 1378d306
No related branches found
No related tags found
No related merge requests found
......@@ -143,6 +143,7 @@ test:
- build
script:
- FAILED=false
- chmod 400 "$SSH_PRIV_KEY"
- OLD_INSTANCE_IP=$(openstack floating ip list --floating-ip-address $CHEAHA_IP -c "Fixed IP Address" -f value)
- echo $OLD_INSTANCE_IP
- |
......@@ -182,7 +183,7 @@ 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
- >
ssh acctsvc@$FLOATING_IP '[ $(mount | grep "type nfs" | wc -l) -eq 6 ]'
ssh -i "$SSH_PRIV_KEY" acctsvc@$FLOATING_IP '[ $(mount | grep "type nfs" | wc -l) -eq 6 ]'
|| FAILED=true
- |
if [ $FAILED ]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment