Skip to content

Commit e325568

Browse files
committed
ci: windows-e2e nightly make display name change conditional
We need to change this only in the case this is a PR build.
1 parent 6ebddb0 commit e325568

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ci/Jenkinsfile.tests-e2e.windows

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,9 @@ pipeline {
233233

234234
def setNewBuildName() {
235235
def prMatch = params.BUILD_SOURCE =~ /PR-(\d+)/
236-
currentBuild.displayName = "PR${prMatch[0][1]}"
236+
if (prMatch) {
237+
currentBuild.displayName = "PR${prMatch[0][1]}"
238+
}
237239
}
238240

239241
def setBuildDescFromFile(fileNameOrPath) {

0 commit comments

Comments
 (0)