Skip to content

Commit 582b4e8

Browse files
committed
Lowercase build types and adds release type
1 parent 3edea68 commit 582b4e8

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

vars/getBuildType.groovy

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,17 @@ def call() {
77
def branchName = env.GIT_BRANCH
88

99
if (branchName.contains('/feature/')) {
10-
return "Internal"
10+
return "internal"
1111
}
1212

1313
if (branchName.contains('/testflight/')) {
14-
return "TestFlight"
14+
return "testflight"
15+
}
16+
17+
if (branchName.contains('/release/')) {
18+
return "release"
1519
}
1620

1721
// If the branch did not have special naming, we assume a Standard build.
18-
return "Standard"
22+
return "standard"
1923
}

vars/setJobDisplayName.groovy

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,21 @@
77
*/
88
def call() {
99
switch(getBuildType()) {
10-
case 'Internal':
10+
case 'internal':
1111
currentBuild.displayName = "#${currentBuild.number} - Internal"
1212
// currentBuild.description = "Internal build."
1313
break
1414

15-
case 'TestFlight':
15+
case 'testflight':
1616
currentBuild.displayName = "#${currentBuild.number} - TestFlight"
1717
// currentBuild.description = "TestFlight build."
1818
break
1919

20+
case 'release':
21+
currentBuild.displayName = "#${currentBuild.number} - Release"
22+
// currentBuild.description = "Release build."
23+
break
24+
2025
default:
2126
// Standard build, we don't change the name.
2227
break

0 commit comments

Comments
 (0)