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
f6910988ef
commit
64d2b8fe45
6 changed files with 14 additions and 14 deletions
|
|
@ -26,7 +26,7 @@ stages:
|
|||
|
||||
steps:
|
||||
- task: PowerShell@2
|
||||
displayName: Output Build Parameters
|
||||
displayName: Write Build Parameters
|
||||
condition: contains(variables['system.debug'], 'true')
|
||||
inputs:
|
||||
targetType: inline
|
||||
|
|
@ -39,9 +39,9 @@ stages:
|
|||
Write-Host "BuildPlatform: ${{parameters.BuildPlatform}}"
|
||||
pwsh: true
|
||||
|
||||
- template: create-agent-capabilities-environment-variables.yml@self
|
||||
- template: create-agent-capabilities-variables.yml@self
|
||||
|
||||
- template: output-environment-variables.yml@self
|
||||
- template: write-environment-variables.yml@self
|
||||
|
||||
- task: NuGetToolInstaller@1
|
||||
displayName: Install NuGet 4.4.1
|
||||
|
|
@ -53,7 +53,7 @@ stages:
|
|||
inputs:
|
||||
restoreSolution: '${{parameters.SolutionFile}}'
|
||||
|
||||
- template: apply-semantic-versioning-to-assembyinfo-files.yml@self
|
||||
- template: update-semantic-versioning-in-assembyinfo-files.yml@self
|
||||
parameters:
|
||||
ApplicationName: ${{parameters.ApplicationName}}
|
||||
PathToSearch: '$(Build.SourcesDirectory)/src'
|
||||
|
|
@ -225,7 +225,7 @@ stages:
|
|||
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
|
||||
ArtifactName: '${{parameters.PublishFolder}}'
|
||||
|
||||
- template: azure-pipelines-clean-agent.yml@self
|
||||
- template: clean-agent-folders.yml@self
|
||||
parameters:
|
||||
CleanArtifactsFolder: true
|
||||
CleanBinariesFolder: true
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ stages:
|
|||
deploy:
|
||||
steps:
|
||||
- task: PowerShell@2
|
||||
displayName: Output Deployment Parameters
|
||||
displayName: Write Deployment Parameters
|
||||
condition: contains(variables['system.debug'], 'true')
|
||||
inputs:
|
||||
targetType: inline
|
||||
|
|
@ -58,7 +58,7 @@ stages:
|
|||
Write-Host "RepositoryFolder: ${{parameters.RepositoryFolder}}"
|
||||
pwsh: true
|
||||
|
||||
- template: output-environment-variables.yml@self
|
||||
- template: write-environment-variables.yml@self
|
||||
|
||||
- checkout: MasterRepo
|
||||
persistCredentials: true
|
||||
|
|
@ -189,7 +189,7 @@ stages:
|
|||
VariableName: 'VersionRevision'
|
||||
VariableValue: $(NewVersionRevision)
|
||||
|
||||
- template: azure-pipelines-clean-agent.yml@self
|
||||
- template: clean-agent-folders.yml@self
|
||||
parameters:
|
||||
CleanArtifactsFolder: true
|
||||
CleanBinariesFolder: true
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
steps:
|
||||
- task: PowerShell@2
|
||||
displayName: Create Agent Capabilities Environment Variables
|
||||
displayName: Create Agent Capabilities Variables
|
||||
env:
|
||||
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
|
||||
inputs:
|
||||
|
|
@ -55,7 +55,7 @@ steps:
|
|||
}
|
||||
}
|
||||
|
||||
Function Output-AgentCapabilities() {
|
||||
Function Create-AgentCapabilitiesVariables() {
|
||||
param(
|
||||
[Parameter(Mandatory = $true)] [PSCustomObject]$capabilities,
|
||||
[Parameter(Mandatory = $true)] [string]$capabilityType
|
||||
|
|
@ -78,7 +78,7 @@ steps:
|
|||
|
||||
$agentData = Get-AzureDevopsAgent -baseUri "$($CollectionUri)/_apis" -agentId $AgentId -agentName $AgentName -accessToken $AccessToken
|
||||
if ($agentData) {
|
||||
#Output-AgentCapabilities -capabilities $agentData.systemCapabilities -capabilityType 'SYSTEM'
|
||||
Output-AgentCapabilities -capabilities $agentData.userCapabilities -capabilityType 'USER'
|
||||
#Create-AgentCapabilitiesVariables -capabilities $agentData.systemCapabilities -capabilityType 'SYSTEM'
|
||||
Create-AgentCapabilitiesVariables -capabilities $agentData.userCapabilities -capabilityType 'USER'
|
||||
}
|
||||
pwsh: true
|
||||
|
|
@ -6,7 +6,7 @@ parameters:
|
|||
|
||||
steps:
|
||||
- task: PowerShell@2
|
||||
displayName: Apply Semantic Versioning to AssemblyInfo Files
|
||||
displayName: Update Semantic Versioning in AssemblyInfo Files
|
||||
inputs:
|
||||
targetType: inline
|
||||
script: |
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
steps:
|
||||
- task: PowerShell@2
|
||||
displayName: Output Environment Variables
|
||||
displayName: Write Environment Variables
|
||||
condition: contains(variables['system.debug'], 'true')
|
||||
inputs:
|
||||
targetType: inline
|
||||
Loading…
Add table
Add a link
Reference in a new issue