Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- node ("instance")
- {
- stage ("Databases")
- {
- sh '''
- ssh -i /root/.ssh/key.pem ec2-user@10.10.10.100;
- pwd;
- sudo su && sleep 2;
- pwd;
- scp -i /root/.ssh/key ec2-user@db01:/var/log/logfile1.log .;
- scp -i /root/.ssh/key ec2-user@db02:/var/log/logfile2.log .;
- scp -i /root/.ssh/key ec2-user@db03:/var/log/logfile3.log .;
- exit;
- '''
- }
- }
Add Comment
Please, Sign In to add comment