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 3c17238 commit 2c1cc90
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Jenkinsfile.local
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@ pipeline {
stages {
stage('run cdt-installer'){
steps {
withCredentials([sshUserPrivateKey(credentialsId: 'devopswise', keyFileVariable: 'identity', passphraseVariable: '', usernameVariable: 'userName')]) {
remote.user = "root"
remote.identityFile = identity
sshCommand remote: remote, command: 'hostname'
sshCommand remote: remote, command: 'xe vm-list'

withCredentials([sshUserPrivateKey(credentialsId: "devopswise", keyFileVariable: 'keyfile')]) {
sh "ssh -i ${keyfile} root@192.168.0.46 hostname"
}


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 2c1cc90

Please sign in to comment.