From fc1844d669b8f620808eae098fc9f7bfaa6c5ba4 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..28fbcb7 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:/var/www/ent.sys.reslate.xyz" + } } } }