Guest User

Untitled

a guest
Jun 22nd, 2018
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. node ("instance")
  2. {
  3. stage ("Databases")
  4. {
  5. sh '''
  6. ssh -i /root/.ssh/key.pem ec2-user@10.10.10.100;
  7. pwd;
  8. sudo su && sleep 2;
  9. pwd;
  10. scp -i /root/.ssh/key ec2-user@db01:/var/log/logfile1.log .;
  11. scp -i /root/.ssh/key ec2-user@db02:/var/log/logfile2.log .;
  12. scp -i /root/.ssh/key ec2-user@db03:/var/log/logfile3.log .;
  13. exit;
  14. '''
  15. }
  16. }
Add Comment
Please, Sign In to add comment