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:
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user