groovy scripts
This commit is contained in:
5
groovy/deploy.groovy
Normal file
5
groovy/deploy.groovy
Normal 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
12
groovy/tag.groovy
Normal 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
|
||||
Reference in New Issue
Block a user