jenkins-scripts/groovy/deploy.groovy
Primakov Alexandr Alexandrovich 815a3d8838
Some checks failed
platform/bro-js/jenkins-scripts/pipeline/head There was a failure building this commit
deploy config name as parameter
2024-11-06 23:56:25 +03:00

6 lines
569 B
Groovy

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