This commit is contained in:
Gregory Hendrickson
2023-06-09 16:02:21 -07:00
parent 44646d8b37
commit f5ef39b732

3
Jenkinsfile vendored
View File

@@ -26,7 +26,7 @@ pipeline {
stage('Pull and Deploy') { stage('Pull and Deploy') {
steps { steps {
withCredentials([ withCredentials([
sshUserPrivateKey(credentialsId: 'ssh-cred', keyFileVariable: 'SSH_KEY', passphraseVariable: 'SSH_PASSPHRASE', usernameVariable: 'SSH_USER') sshUserPrivateKey(credentialsId: 'ssh-cred', keyFileVariable: 'SSH_KEY', usernameVariable: 'SSH_USER')
]) { ]) {
script { script {
def remote = [:] def remote = [:]
@@ -34,7 +34,6 @@ pipeline {
remote.host = '172.16.11.90' remote.host = '172.16.11.90'
remote.user = "${SSH_USER}" remote.user = "${SSH_USER}"
remote.keyFile = "${SSH_KEY}" remote.keyFile = "${SSH_KEY}"
remote.passphrase = "${SSH_PASSPHRASE}"
remote.allowAnyHosts = true remote.allowAnyHosts = true
writeFile file: 'run-pull-deploy.sh', text: ''' writeFile file: 'run-pull-deploy.sh', text: '''