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

Update script to use ssh agent

parent 5259afea
No related branches found
No related tags found
No related merge requests found
...@@ -143,10 +143,12 @@ test: ...@@ -143,10 +143,12 @@ test:
- build - build
script: script:
- FAILED=false - FAILED=false
- chmod 400 "$SSH_PRIV_KEY" - |
- ssh-add "$SSH_PRIV_KEY" eval $(ssh-agent -s)
- mkdir ~/.ssh chmod 400 "$SSH_PRIV_KEY"
- chmod 700 ~/.ssh ssh-add "$SSH_PRIV_KEY"
mkdir ~/.ssh
chmod 700 ~/.ssh
- OLD_INSTANCE_IP=$(openstack floating ip list --floating-ip-address $CHEAHA_IP -c "Fixed IP Address" -f value) - OLD_INSTANCE_IP=$(openstack floating ip list --floating-ip-address $CHEAHA_IP -c "Fixed IP Address" -f value)
- echo $OLD_INSTANCE_IP - echo $OLD_INSTANCE_IP
- | - |
...@@ -186,7 +188,7 @@ test: ...@@ -186,7 +188,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 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 || FAILED=true
- > - >
ssh -i "$SSH_PRIV_KEY" acctsvc@$FLOATING_IP '[ $(mount | grep "type nfs" | wc -l) -eq 6 ]' ssh acctsvc@$FLOATING_IP '[ $(mount | grep "type nfs" | wc -l) -eq 6 ]'
|| FAILED=true || FAILED=true
- | - |
if [ $FAILED ]; then 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