Skip to content

Commit

Permalink
handle version when uploading package
Browse files Browse the repository at this point in the history
  • Loading branch information
madkoo committed Mar 31, 2022
1 parent 5cfa301 commit dd30320
Showing 1 changed file with 4 additions and 17 deletions.
21 changes: 4 additions & 17 deletions .azure-pipelines/azure-pipeline.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
variables:
- group: Extensions Patch Versions
- name: version.MajorMinor # Manually adjust the version number as needed for semantic versioning. Patch is auto-incremented.
value: '1.1'
- name: extensionName
Expand All @@ -10,10 +9,6 @@ variables:
value: 'alm-devops-rangers'
- name: publicExtensionName
value: "Azure Boards Kanban Tools"
- name: version.Patch
value: $[counter(variables['version.MajorMinor'],variables['kanbanToolPatchVer'])]
- name: versionNumber
value: '$(version.MajorMinor).$(version.Patch)'

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

Expand All @@ -39,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 @@ -72,6 +56,7 @@ stages:
marketplaceConnectedServiceName: $(marketplaceServiceConnection)
publisherId: $(publisherId)
publicExtensionName: $(publicExtensionName)
updateTaskVersion: true

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

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

0 comments on commit dd30320

Please sign in to comment.