Skip to content
This repository has been archived by the owner on Aug 13, 2022. It is now read-only.

Commit

Permalink
chore : deploy test
Browse files Browse the repository at this point in the history
  • Loading branch information
kihyuk-jeong committed May 7, 2021
1 parent 4590d78 commit 927d19d
Showing 1 changed file with 21 additions and 8 deletions.
29 changes: 21 additions & 8 deletions Jenkinsfile-cd
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,27 @@ pipeline {
}
}

stage('Deploy)' {
steps {
script {
sh "ssh root [email protected] -T sh < /root/app/step1/deploy.sh"
}
}
}
}
stage('Deploy') {
steps([$class: 'BapSshPromotionPublisherPlugin']) {
sshPublisher(
continueOnError: false, failOnError: true,
publishers: [
sshPublisherDesc(
configName: "shoe-auction-deploy",
verbose: true,
transfers: [
sshTransfer(
sourceFiles: "",
removePrefix: "",
remoteDirectory: "",
execCommand: "sh /root/app/step1/deploy.sh" //원격지에서 실행할 커맨드
)
]
)
]
)
}
}

post {
success {
Expand Down

0 comments on commit 927d19d

Please sign in to comment.