This commit is contained in:
Gregory Hendrickson
2023-06-09 16:13:40 -07:00
parent 63a93d568f
commit ec9e818d9c

6
Jenkinsfile vendored
View File

@@ -27,13 +27,11 @@ pipeline {
stage('Pull and Deploy') { stage('Pull and Deploy') {
steps { steps {
withCredentials([ withCredentials([
sshUserPrivateKey(credentialsId: 'ssh-cred', keyFileVariable: 'identity', usernameVariable: 'SSH_USER') sshUserPrivateKey(credentialsId: 'ssh-cred', keyFileVariable: 'identity', usernameVariable: 'userName')
]) { ]) {
script {
def remote = [:]
remote.name = 'ubuntu-kc' remote.name = 'ubuntu-kc'
remote.host = '172.16.11.90' remote.host = '172.16.11.90'
remote.user = SSH_USER remote.user = userName
remote.identityFile = identity remote.identityFile = identity
remote.allowAnyHosts = true remote.allowAnyHosts = true