mirror of
https://github.com/ghndrx/docker-test-image.git
synced 2026-02-10 06:45:05 +00:00
s
This commit is contained in:
3
Jenkinsfile
vendored
3
Jenkinsfile
vendored
@@ -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 = [:]
|
||||
|
||||
Reference in New Issue
Block a user