feat(standard-make): add staging and master to default release branches
This commit is contained in:
parent
1d956d60b1
commit
efbdad226c
|
@ -27,7 +27,7 @@ void call(Map options = [:]) {
|
|||
String dockerfileExtension = options.get('dockerfileExtension', '')
|
||||
List credentials = options.get('credentials', [])
|
||||
|
||||
List<String> releaseBranches = options.get('releaseBranches', ['develop', 'testing', 'stable'])
|
||||
List<String> releaseBranches = options.get('releaseBranches', ['develop', 'testing', 'stable', 'staging', 'master'])
|
||||
|
||||
node {
|
||||
properties([
|
||||
|
|
|
@ -52,8 +52,10 @@ String getProjectVersionShortChannel(String channel) {
|
|||
case 'develop':
|
||||
return 'dev'
|
||||
case 'testing':
|
||||
case 'staging':
|
||||
return 'tst'
|
||||
case 'stable':
|
||||
case 'master':
|
||||
return 'stb'
|
||||
default:
|
||||
return channel.toLowerCase().replaceAll('(a|e|i|o|u|y_|-| )+', '').take(3)
|
||||
|
|
Loading…
Reference in New Issue