Skip to content

Commit

Permalink
add Jenkinsfile.local
Browse files Browse the repository at this point in the history
  • Loading branch information
devopswise committed Jan 16, 2019
1 parent 16ee0f8 commit e069619
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Jenkinsfile.local
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@ pipeline {
stages {
stage('run cdt-installer'){
steps {

withCredentials([sshUserPrivateKey(credentialsId: "devopswise", keyFileVariable: 'keyfile')]) {
sh "ssh -o StrictHostKeyChecking=no -i ${keyfile} root@192.168.0.46 hostname"
sh "ssh -o StrictHostKeyChecking=no -i ${keyfile} root@192.168.0.46 'xe snapshot-revert uuid=97cde43e-13ad-29b0-7b43-fc642a037371'"
sh "ssh -o StrictHostKeyChecking=no -i ${keyfile} root@192.168.0.46 'xe vm-start vm=srvpre01'"
}


sh "sleep 15"
withCredentials([string(credentialsId: 'AWS_ACCESS_KEY', variable: 'AWS_ACCESS_KEY_ID'),
string(credentialsId: 'AWS_SECRET_KEY', variable: 'AWS_SECRET_ACCESS_KEY'),
]) {
Expand Down

0 comments on commit e069619

Please sign in to comment.