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