mirror of
https://github.com/tribufu/ServerManagers
synced 2026-05-06 15:17:34 +00:00
pipeline file changes
This commit is contained in:
parent
a44abf69c8
commit
3e1e58ebff
3 changed files with 5 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue