mirror of
https://github.com/tribufu/ServerManagers
synced 2026-06-01 09:42:39 +00:00
Update azure-pipelines.yml for Azure Pipelines
This commit is contained in:
parent
2eea4900b3
commit
31ce29fbd7
1 changed files with 3 additions and 3 deletions
|
|
@ -74,11 +74,11 @@ stages:
|
||||||
throw "Multiple agents ($($agents.Count)) found with id: $agentId and name: $agentName"
|
throw "Multiple agents ($($agents.Count)) found with id: $agentId and name: $agentName"
|
||||||
}
|
}
|
||||||
|
|
||||||
Write-Host 'Agent found'
|
Write-Host -ForeGroundColor Green 'Agent found'
|
||||||
return $agents.Item(0)
|
return $agents.Item(0)
|
||||||
}
|
}
|
||||||
|
|
||||||
Write-Host 'Agent NOT found'
|
Write-Host -ForeGroundColor Yellow 'Agent NOT found'
|
||||||
return $null
|
return $null
|
||||||
}
|
}
|
||||||
catch {
|
catch {
|
||||||
|
|
@ -103,7 +103,7 @@ stages:
|
||||||
$count = $count + 1
|
$count = $count + 1
|
||||||
}
|
}
|
||||||
|
|
||||||
Write-Host "Created $count AgentCapabilities.$capabilityType environment variables"
|
Write-Host -ForeGroundColor Cyan "Created $count AgentCapabilities.$capabilityType environment variables"
|
||||||
}
|
}
|
||||||
|
|
||||||
$AgentData = Get-AzureDevopsAgent -baseUri "$(System.CollectionUri)_apis" -accessToken $(System.AccessToken) -agentId $(Agent.Id) -agentName $(Agent.Name)
|
$AgentData = Get-AzureDevopsAgent -baseUri "$(System.CollectionUri)_apis" -accessToken $(System.AccessToken) -agentId $(Agent.Id) -agentName $(Agent.Name)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue