groovy scripts

This commit is contained in:
Primakov Alexandr Alexandrovich
2024-08-05 18:04:29 +03:00
parent 9bccd1f0a1
commit 9cc5f2734b
3 changed files with 69 additions and 12 deletions

5
groovy/deploy.groovy Normal file
View File

@@ -0,0 +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)])
}
return this

12
groovy/tag.groovy Normal file
View File

@@ -0,0 +1,12 @@
String tag = ''
def calcTag() {
tag = sh(returnStdout: true, script: "git tag --contains").trim()
return tag
}
def getTagNoV() {
return tag.substring(1)
}
return this