File tree Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -7,13 +7,17 @@ def call() {
7
7
def branchName = env. GIT_BRANCH
8
8
9
9
if (branchName. contains(' /feature/' )) {
10
- return " Internal "
10
+ return " internal "
11
11
}
12
12
13
13
if (branchName. contains(' /testflight/' )) {
14
- return " TestFlight"
14
+ return " testflight"
15
+ }
16
+
17
+ if (branchName. contains(' /release/' )) {
18
+ return " release"
15
19
}
16
20
17
21
// If the branch did not have special naming, we assume a Standard build.
18
- return " Standard "
22
+ return " standard "
19
23
}
Original file line number Diff line number Diff line change 7
7
*/
8
8
def call () {
9
9
switch (getBuildType()) {
10
- case ' Internal ' :
10
+ case ' internal ' :
11
11
currentBuild. displayName = " #${ currentBuild.number} - Internal"
12
12
// currentBuild.description = "Internal build."
13
13
break
14
14
15
- case ' TestFlight ' :
15
+ case ' testflight ' :
16
16
currentBuild. displayName = " #${ currentBuild.number} - TestFlight"
17
17
// currentBuild.description = "TestFlight build."
18
18
break
19
19
20
+ case ' release' :
21
+ currentBuild. displayName = " #${ currentBuild.number} - Release"
22
+ // currentBuild.description = "Release build."
23
+ break
24
+
20
25
default :
21
26
// Standard build, we don't change the name.
22
27
break
You can’t perform that action at this time.
0 commit comments