Commit 7e2151bc authored by Josh Steinberg's avatar Josh Steinberg

update script

parent c70f6996
...@@ -60,9 +60,9 @@ pipeline { ...@@ -60,9 +60,9 @@ pipeline {
steps{ steps{
sshagent(credentials: ['ssh-cred']){ sshagent(credentials: ['ssh-cred']){
sh ''' sh '''
[ -d ~/.ssh ] || mkdir ~/.ssh && chmod 0700 ~/.ssh sudo [ -d ~/.ssh ] || mkdir ~/.ssh && chmod 0700 ~/.ssh
ssh-keyscan -t rsa,dsa ${REMOTE_AGENT} >> ~/.ssh/known_hosts sudo ssh-keyscan -t rsa,dsa ${REMOTE_AGENT} >> ~/.ssh/known_hosts
ssh root@${REMOTE_AGENT} echo "hello" sudo ssh root@${REMOTE_AGENT} echo "hello"
''' '''
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment