mirror of
https://github.com/tribufu/ServerManagers
synced 2026-06-01 09:42:39 +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'
|
value: 'src/Server-Managers.sln'
|
||||||
- name: ProjectFile
|
- name: ProjectFile
|
||||||
value: 'src/$(ApplicationName)/$(ApplicationName).csproj'
|
value: 'src/$(ApplicationName)/$(ApplicationName).csproj'
|
||||||
#- name: PublishFolder
|
|
||||||
# value: publish
|
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- template: azure-pipelines-build.yml@self
|
- template: azure-pipelines-build.yml@self
|
||||||
|
|
@ -35,6 +33,8 @@ stages:
|
||||||
ApplicationName: $(ApplicationName)
|
ApplicationName: $(ApplicationName)
|
||||||
SolutionFile: $(SolutionFile)
|
SolutionFile: $(SolutionFile)
|
||||||
ProjectFile: $(ProjectFile)
|
ProjectFile: $(ProjectFile)
|
||||||
|
BuildConfiguration: $(BuildConfiguration)
|
||||||
|
BuildPlatform: $(BuildPlatform)
|
||||||
PublishFolder: $(PublishFolder)
|
PublishFolder: $(PublishFolder)
|
||||||
|
|
||||||
- template: azure-pipelines-deploy.yml@self
|
- template: azure-pipelines-deploy.yml@self
|
||||||
|
|
|
||||||
|
|
@ -2,9 +2,9 @@ steps:
|
||||||
- task: PowerShell@2
|
- task: PowerShell@2
|
||||||
displayName: Create AgentCapabilities Environment Variables
|
displayName: Create AgentCapabilities Environment Variables
|
||||||
env:
|
env:
|
||||||
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
|
USER_ACCESSTOKEN: $(AuthorizationToken)
|
||||||
inputs:
|
inputs:
|
||||||
targetType: filePath
|
targetType: filePath
|
||||||
filePath: './.azure/scripts/CreateAgentCapabilitiesEnvironmentVariables.ps1'
|
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
|
pwsh: true
|
||||||
|
|
|
||||||
|
|
@ -86,7 +86,7 @@ if ($debugMode -eq "true")
|
||||||
|
|
||||||
$AgentData = Get-AzureDevopsAgent -baseUri "$($CollectionUri)_apis" -accessToken $AccessToken -agentId $AgentId -agentName $AgentName
|
$AgentData = Get-AzureDevopsAgent -baseUri "$($CollectionUri)_apis" -accessToken $AccessToken -agentId $AgentId -agentName $AgentName
|
||||||
if ($AgentData) {
|
if ($AgentData) {
|
||||||
Output-AgentCapabilities -capabilities $AgentData.systemCapabilities -capabilityType 'System'
|
#Output-AgentCapabilities -capabilities $AgentData.systemCapabilities -capabilityType 'System'
|
||||||
Output-AgentCapabilities -capabilities $AgentData.userCapabilities -capabilityType 'User'
|
Output-AgentCapabilities -capabilities $AgentData.userCapabilities -capabilityType 'User'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue