feat(standard-make): add staging and master to default release branches

This commit is contained in:
wpetit 2023-08-23 15:16:33 -06:00
parent 1d956d60b1
commit efbdad226c
2 changed files with 3 additions and 1 deletions

View File

@ -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([

View File

@ -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)