SHARE
TWEET

Untitled

a guest Apr 24th, 2019 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. node{
  2.  
  3.     stage("ssh-agent"){
  4.  
  5.       script {
  6.  
  7.         sshagent (credentials: ['34c01c0c-b125-4d53-9f35-998f34f9903a']) {
  8.           sh 'ssh -o StrictHostKeyChecking=no -l ubuntu ec2-3-14-72-40.us-east-2.compute.amazonaws.com sudo apt-get update'
  9.           sh 'ssh -o StrictHostKeyChecking=no -l ubuntu ec2-3-14-72-40.us-east-2.compute.amazonaws.com sudo apt-get install mc -y'
  10.           sh 'ssh -o StrictHostKeyChecking=no -l ubuntu ec2-3-14-72-40.us-east-2.compute.amazonaws.com whoami'
  11.        
  12.             }
  13.  
  14.           }
  15.          }
  16.      }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top