This commit is contained in:
Gregory Hendrickson
2023-06-09 16:05:51 -07:00
parent f5ef39b732
commit 5bdc3b31a6

3
Jenkinsfile vendored
View File

@@ -2,6 +2,7 @@ pipeline {
agent any
environment {
DOCKERHUB_CREDENTIALS=credentials('dockerhub-cred')
SSH_CREDENTIALS=credentials('ssh-cred')
}
stages {
@@ -26,7 +27,7 @@ pipeline {
stage('Pull and Deploy') {
steps {
withCredentials([
sshUserPrivateKey(credentialsId: 'ssh-cred', keyFileVariable: 'SSH_KEY', usernameVariable: 'SSH_USER')
sshUserPrivateKey(credentialsId: 'ssh-cred', identity: 'SSH_KEY', usernameVariable: 'SSH_USER')
]) {
script {
def remote = [:]