Skip to content

Commit

Permalink
Merge pull request #67 from ALM-Rangers/feature/handle-versioning
Browse files Browse the repository at this point in the history
add variable for patch version
  • Loading branch information
MOlausson authored Apr 5, 2022
2 parents b64ae92 + dd30320 commit 9e69198
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions .azure-pipelines/azure-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ variables:
value: 'alm-devops-rangers'
- name: publicExtensionName
value: "Azure Boards Kanban Tools"
- name: version.Patch
value: $[counter(variables['version.MajorMinor'],132)]
- name: versionNumber
value: '$(version.MajorMinor).$(version.Patch)'

name: $(version.MajorMinor)$(rev:.r)

Expand All @@ -38,17 +34,6 @@ stages:
pool:
vmImage: ubuntu-latest
steps:


- task: PowerShell@2
displayName: Set the name of the build (i.e. the Build.BuildNumber)
inputs:
targetType: 'inline'
script: |
[string] $buildName = "$(versionNumber)"
Write-Host "Setting the name of the build to '$buildName'."
Write-Host "##vso[build.updatebuildnumber]$buildName"
- task: NodeTool@0
inputs:
versionSpec: '14.x'
Expand All @@ -71,6 +56,7 @@ stages:
marketplaceConnectedServiceName: $(marketplaceServiceConnection)
publisherId: $(publisherId)
publicExtensionName: $(publicExtensionName)
updateTaskVersion: true

- stage: 'DeployTest'
displayName: 'Deploy to Test'
Expand All @@ -84,6 +70,7 @@ stages:
marketplaceConnectedServiceName: $(marketplaceServiceConnection)
publisherId: $(publisherId)
publicExtensionName: $(publicExtensionName)
updateTaskVersion: true

- stage: 'DeployRelease'
displayName: 'Deploy Release'
Expand All @@ -97,4 +84,5 @@ stages:
marketplaceConnectedServiceName: $(marketplaceServiceConnection)
publisherId: $(publisherId)
publicExtensionName: $(publicExtensionName)
extensionVisibility: 'public'
extensionVisibility: 'public'
updateTaskVersion: true

0 comments on commit 9e69198

Please sign in to comment.