pipeline file changes

This commit is contained in:
Brett Hewitson 2022-12-29 14:06:06 +10:00
parent a44abf69c8
commit 3e1e58ebff
3 changed files with 5 additions and 5 deletions

View file

@ -26,8 +26,6 @@ variables:
value: 'src/Server-Managers.sln'
- name: ProjectFile
value: 'src/$(ApplicationName)/$(ApplicationName).csproj'
#- name: PublishFolder
# value: publish
stages:
- template: azure-pipelines-build.yml@self
@ -35,6 +33,8 @@ stages:
ApplicationName: $(ApplicationName)
SolutionFile: $(SolutionFile)
ProjectFile: $(ProjectFile)
BuildConfiguration: $(BuildConfiguration)
BuildPlatform: $(BuildPlatform)
PublishFolder: $(PublishFolder)
- template: azure-pipelines-deploy.yml@self

View file

@ -2,9 +2,9 @@ steps:
- task: PowerShell@2
displayName: Create AgentCapabilities Environment Variables
env:
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
USER_ACCESSTOKEN: $(AuthorizationToken)
inputs:
targetType: filePath
filePath: './.azure/scripts/CreateAgentCapabilitiesEnvironmentVariables.ps1'
arguments: "-CollectionUri '$(System.CollectionUri)' -AgentId '$(Agent.Id)' -AgentName '$(Agent.Name)' -AccessToken $(System.AccessToken) -DebugMode $env:SYSTEM_DEBUG"
arguments: "-CollectionUri '$(System.CollectionUri)' -AgentId '$(Agent.Id)' -AgentName '$(Agent.Name)' -AccessToken $env:USER_ACCESSTOKEN -DebugMode $env:SYSTEM_DEBUG"
pwsh: true

View file

@ -86,7 +86,7 @@ if ($debugMode -eq "true")
$AgentData = Get-AzureDevopsAgent -baseUri "$($CollectionUri)_apis" -accessToken $AccessToken -agentId $AgentId -agentName $AgentName
if ($AgentData) {
Output-AgentCapabilities -capabilities $AgentData.systemCapabilities -capabilityType 'System'
#Output-AgentCapabilities -capabilities $AgentData.systemCapabilities -capabilityType 'System'
Output-AgentCapabilities -capabilities $AgentData.userCapabilities -capabilityType 'User'
}