From 815a3d88387bb88a054b5463ee7d8ab3d6f15eb7 Mon Sep 17 00:00:00 2001 From: Primakov Alexandr Alexandrovich Date: Wed, 6 Nov 2024 23:56:25 +0300 Subject: [PATCH] deploy config name as parameter --- groovy/deploy.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/groovy/deploy.groovy b/groovy/deploy.groovy index 4c3ea20..6d936d7 100644 --- a/groovy/deploy.groovy +++ b/groovy/deploy.groovy @@ -1,5 +1,5 @@ -def deploy(String versionName, String staticFolderName) { - sshPublisher(publishers: [sshPublisherDesc(configName: 'bro-js-static', transfers: [sshTransfer(cleanRemote: false, excludes: '', execCommand: '', execTimeout: 120000, flatten: false, makeEmptyDirs: false, noDefaultExcludes: false, patternSeparator: '[, ]+', remoteDirectory: staticFolderName, remoteDirectorySDF: false, removePrefix: '', sourceFiles: "${versionName}/**")], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: true)]) +def deploy(String versionName, String staticFolderName, String sshConfigName = 'bro-js-static') { + sshPublisher(publishers: [sshPublisherDesc(configName: sshConfigName, transfers: [sshTransfer(cleanRemote: false, excludes: '', execCommand: '', execTimeout: 120000, flatten: false, makeEmptyDirs: false, noDefaultExcludes: false, patternSeparator: '[, ]+', remoteDirectory: staticFolderName, remoteDirectorySDF: false, removePrefix: '', sourceFiles: "${versionName}/**")], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: true)]) } return this