ci: handle nightly build naming better
Nightly builds just don't provide enough info in the path itself. Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
0219df1eba
commit
b25cbb5ce3
|
@ -170,7 +170,7 @@ def setNewBuildName() {
|
||||||
/* For URLs we need to parse the filename to get attributes. */
|
/* For URLs we need to parse the filename to get attributes. */
|
||||||
if (params.BUILD_SOURCE.startsWith('http')) {
|
if (params.BUILD_SOURCE.startsWith('http')) {
|
||||||
def tokens = utils.parseFilename(utils.baseName(params.BUILD_SOURCE))
|
def tokens = utils.parseFilename(utils.baseName(params.BUILD_SOURCE))
|
||||||
currentBuild.displayName = tokens.build
|
currentBuild.displayName = tokens.build.replace(/^pr/, 'PR-')
|
||||||
currentBuild.description = formatMap([
|
currentBuild.description = formatMap([
|
||||||
Node: NODE_NAME,
|
Node: NODE_NAME,
|
||||||
Build: tokens.build,
|
Build: tokens.build,
|
||||||
|
@ -178,7 +178,12 @@ def setNewBuildName() {
|
||||||
Version: (tokens.tstamp ?: tokens.version),
|
Version: (tokens.tstamp ?: tokens.version),
|
||||||
])
|
])
|
||||||
} else {
|
} else {
|
||||||
currentBuild.displayName = utils.baseName(params.BUILD_SOURCE).replace(/^pr/, 'PR-')
|
def parent = utils.parentOrCurrentBuild()
|
||||||
|
if (!(parent.getFullDisplayName() ==~ /prs/)) {
|
||||||
|
currentBuild.displayName = parent.getFullDisplayName().minus('status-desktop » ')
|
||||||
|
} else {
|
||||||
|
currentBuild.displayName = utils.baseName(params.BUILD_SOURCE)
|
||||||
|
}
|
||||||
currentBuild.description = formatMap([
|
currentBuild.description = formatMap([
|
||||||
Node: NODE_NAME,
|
Node: NODE_NAME,
|
||||||
Build: params.BUILD_SOURCE.minus('status-desktop/'),
|
Build: params.BUILD_SOURCE.minus('status-desktop/'),
|
||||||
|
|
Loading…
Reference in New Issue