Prefer 'nightly' tags when reading current git tag.

fork-5.53.8
Greyson Parrelli 2021-11-17 21:17:36 -05:00
rodzic 018782e63d
commit 811d79c873
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -83,7 +83,6 @@ def selectableVariants = [
'nightlyProdFlipper',
'nightlyProdPerf',
'nightlyProdRelease',
'nightlyStagingPerf',
'playProdDebug',
'playProdFlipper',
'playProdPerf',
@ -599,7 +598,8 @@ def getCurrentGitTag() {
def output = stdout.toString().trim()
if (output != null && output.size() > 0) {
return output.split('\n')[0];
def tags = output.split('\n').toList()
return tags.stream().filter(t -> t.contains('nightly')).findFirst().orElse(tags.get(0))
} else {
return null
}