[CI] Add a tag to identify those auto-scheduled builds. fixes #11191 (#11204)

This commit is contained in:
Manuel de la Pena 2021-04-14 10:56:31 -04:00 коммит произвёл GitHub
Родитель 4560862966
Коммит 20318fe15a
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -21,6 +21,10 @@ steps:
# the following list will be used to track the tags and set them in VSTS to make the monitoring person life easier
[System.Collections.Generic.List[string]]$tags = @()
if ($buildReason -eq "Schedule") {
$tags.Add("cronjob")
}
if ($buildReason -eq "PullRequest" -or (($buildReason -eq "Manual") -and ($buildSourceBranchName -eq "merge")) ) {
Write-Host "Configuring build from PR."
# This is an interesting step, we do know we are dealing with a PR, but we need the PR id to