From ccfb6847de007c6b6958a7a14ff2b34db1f810af Mon Sep 17 00:00:00 2001 From: Harrison Deng Date: Wed, 11 May 2022 21:59:02 -0500 Subject: [PATCH] Changed to scp deployment. --- Jenkinsfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index dec51a3..81b1fc9 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -27,7 +27,9 @@ pipeline { branch '**/master' } steps { - sshPublisher(publishers: [sshPublisherDesc(configName: 'RS - Web Server', transfers: [sshTransfer(cleanRemote: false, excludes: '', execCommand: '', execTimeout: 120000, flatten: false, makeEmptyDirs: false, noDefaultExcludes: false, patternSeparator: '[, ]+', remoteDirectory: 'ent.sys.reslate.xyz', remoteDirectorySDF: false, removePrefix: '', sourceFiles: 'dist/**')], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: false)]) + sshagent(['13e00839-0608-4e91-8b9e-cce3818425f3']) { + sh "scp -r dist/** www-data@sys.reslate.xyz:/srv/www/ent.sys.reslate.xyz" + } } } }