pipeline file changes

This commit is contained in:
Brett Hewitson 2022-12-31 01:35:55 +10:00
parent 796ae0c772
commit d26190046d
6 changed files with 25 additions and 28 deletions

View file

@ -39,7 +39,7 @@ stages:
Write-Host "BuildPlatform: ${{parameters.BuildPlatform}}" Write-Host "BuildPlatform: ${{parameters.BuildPlatform}}"
pwsh: true pwsh: true
- template: create-agent-capabilities-variables.yml@self - template: create-agent-capabilities-variables.yml
- task: PowerShell@2 - task: PowerShell@2
displayName: Write Environment Variables displayName: Write Environment Variables
@ -81,7 +81,7 @@ stages:
inputs: inputs:
restoreSolution: '${{parameters.SolutionFile}}' restoreSolution: '${{parameters.SolutionFile}}'
- template: update-semantic-versioning-in-assembyinfo-files.yml@self - template: update-semantic-versioning-in-assembyinfo-files.yml
parameters: parameters:
ApplicationName: ${{parameters.ApplicationName}} ApplicationName: ${{parameters.ApplicationName}}
PathToSearch: '$(Build.SourcesDirectory)/src' PathToSearch: '$(Build.SourcesDirectory)/src'
@ -167,7 +167,7 @@ stages:
PathtoPublish: '$(Build.ArtifactStagingDirectory)' PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactName: '${{parameters.PublishFolder}}' ArtifactName: '${{parameters.PublishFolder}}'
- template: clean-agent-folders.yml@self - template: clean-agent-folders.yml
parameters: parameters:
CleanArtifactsFolder: true CleanArtifactsFolder: true
CleanBinariesFolder: true CleanBinariesFolder: true

View file

@ -185,17 +185,17 @@ stages:
Write-Host "##vso[task.setvariable variable=NewVersionRevision;]$newValue" Write-Host "##vso[task.setvariable variable=NewVersionRevision;]$newValue"
displayName: Set New Pipeline Version Variable Values displayName: Set New Pipeline Version Variable Values
- template: update-pipeline-variable.yml@self - template: update-pipeline-variable.yml
parameters: parameters:
VariableName: 'VersionBuild' VariableName: 'VersionBuild'
VariableValue: $(NewVersionBuild) VariableValue: $(NewVersionBuild)
- template: update-pipeline-variable.yml@self - template: update-pipeline-variable.yml
parameters: parameters:
VariableName: 'VersionRevision' VariableName: 'VersionRevision'
VariableValue: $(NewVersionRevision) VariableValue: $(NewVersionRevision)
- template: clean-agent-folders.yml@self - template: clean-agent-folders.yml
parameters: parameters:
CleanArtifactsFolder: true CleanArtifactsFolder: true
CleanBinariesFolder: true CleanBinariesFolder: true

View file

@ -1,16 +1,11 @@
name: $(VersionMajor).$(VersionMinor).$(VersionBuild).$(VersionRevision) name: $(VersionMajor).$(VersionMinor).$(VersionBuild).$(VersionRevision)
#trigger: trigger: none
# branches: pr: none
# include:
# - source
# paths:
# include:
# - src
#pool: pool:
name: Default
# vmImage: windows-latest # vmImage: windows-latest
# demands: InnoSetup
resources: resources:
repositories: repositories:
@ -28,7 +23,7 @@ variables:
value: 'src/$(ApplicationName)/$(ApplicationName).csproj' value: 'src/$(ApplicationName)/$(ApplicationName).csproj'
stages: stages:
- template: azure-pipelines-discordplugin-build.yml@self - template: azure-pipelines-discordplugin-build.yml
parameters: parameters:
ApplicationName: $(ApplicationName) ApplicationName: $(ApplicationName)
SolutionFile: $(SolutionFile) SolutionFile: $(SolutionFile)
@ -37,7 +32,7 @@ stages:
BuildPlatform: $(BuildPlatform) BuildPlatform: $(BuildPlatform)
PublishFolder: $(PublishFolder) PublishFolder: $(PublishFolder)
- template: azure-pipelines-discordplugin-deploy.yml@self - template: azure-pipelines-discordplugin-deploy.yml
parameters: parameters:
DeploymentType: Beta DeploymentType: Beta
DependsOn: build DependsOn: build
@ -47,7 +42,7 @@ stages:
GitEmail: $(GitEmail) GitEmail: $(GitEmail)
GitUsername: $(GitUsername) GitUsername: $(GitUsername)
- template: azure-pipelines-discordplugin-deploy.yml@self - template: azure-pipelines-discordplugin-deploy.yml
parameters: parameters:
DeploymentType: Production DeploymentType: Production
DependsOn: Beta DependsOn: Beta

View file

@ -39,7 +39,7 @@ stages:
Write-Host "BuildPlatform: ${{parameters.BuildPlatform}}" Write-Host "BuildPlatform: ${{parameters.BuildPlatform}}"
pwsh: true pwsh: true
- template: create-agent-capabilities-variables.yml@self - template: create-agent-capabilities-variables.yml
- task: PowerShell@2 - task: PowerShell@2
displayName: Write Environment Variables displayName: Write Environment Variables
@ -81,7 +81,7 @@ stages:
inputs: inputs:
restoreSolution: '${{parameters.SolutionFile}}' restoreSolution: '${{parameters.SolutionFile}}'
- template: update-semantic-versioning-in-assembyinfo-files.yml@self - template: update-semantic-versioning-in-assembyinfo-files.yml
parameters: parameters:
ApplicationName: ${{parameters.ApplicationName}} ApplicationName: ${{parameters.ApplicationName}}
PathToSearch: '$(Build.SourcesDirectory)/src' PathToSearch: '$(Build.SourcesDirectory)/src'
@ -256,7 +256,7 @@ stages:
PathtoPublish: '$(Build.ArtifactStagingDirectory)' PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactName: '${{parameters.PublishFolder}}' ArtifactName: '${{parameters.PublishFolder}}'
- template: clean-agent-folders.yml@self - template: clean-agent-folders.yml
parameters: parameters:
CleanArtifactsFolder: true CleanArtifactsFolder: true
CleanBinariesFolder: true CleanBinariesFolder: true

View file

@ -187,17 +187,17 @@ stages:
Write-Host "##vso[task.setvariable variable=NewVersionRevision;]$newValue" Write-Host "##vso[task.setvariable variable=NewVersionRevision;]$newValue"
displayName: Set New Pipeline Version Variable Values displayName: Set New Pipeline Version Variable Values
- template: update-pipeline-variable.yml@self - template: update-pipeline-variable.yml
parameters: parameters:
VariableName: 'VersionBuild' VariableName: 'VersionBuild'
VariableValue: $(NewVersionBuild) VariableValue: $(NewVersionBuild)
- template: update-pipeline-variable.yml@self - template: update-pipeline-variable.yml
parameters: parameters:
VariableName: 'VersionRevision' VariableName: 'VersionRevision'
VariableValue: $(NewVersionRevision) VariableValue: $(NewVersionRevision)
- template: clean-agent-folders.yml@self - template: clean-agent-folders.yml
parameters: parameters:
CleanArtifactsFolder: true CleanArtifactsFolder: true
CleanBinariesFolder: true CleanBinariesFolder: true

View file

@ -7,10 +7,12 @@ trigger:
paths: paths:
include: include:
- src - src
pr: none
pool: pool:
# vmImage: windows-latest name: Default
demands: InnoSetup demands: InnoSetup
# vmImage: windows-latest
resources: resources:
repositories: repositories:
@ -28,7 +30,7 @@ variables:
value: 'src/$(ApplicationName)/$(ApplicationName).csproj' value: 'src/$(ApplicationName)/$(ApplicationName).csproj'
stages: stages:
- template: azure-pipelines-servermanagers-build.yml@self - template: azure-pipelines-servermanagers-build.yml
parameters: parameters:
ApplicationName: $(ApplicationName) ApplicationName: $(ApplicationName)
SolutionFile: $(SolutionFile) SolutionFile: $(SolutionFile)
@ -37,7 +39,7 @@ stages:
BuildPlatform: $(BuildPlatform) BuildPlatform: $(BuildPlatform)
PublishFolder: $(PublishFolder) PublishFolder: $(PublishFolder)
- template: azure-pipelines-servermanagers-deploy.yml@self - template: azure-pipelines-servermanagers-deploy.yml
parameters: parameters:
DeploymentType: Beta DeploymentType: Beta
DependsOn: build DependsOn: build
@ -47,7 +49,7 @@ stages:
GitEmail: $(GitEmail) GitEmail: $(GitEmail)
GitUsername: $(GitUsername) GitUsername: $(GitUsername)
- template: azure-pipelines-servermanagers-deploy.yml@self - template: azure-pipelines-servermanagers-deploy.yml
parameters: parameters:
DeploymentType: Production DeploymentType: Production
DependsOn: Beta DependsOn: Beta