I have a universal artifacts package feed named 'TWI-NORA/twi-cci' How can I download the package with the newest version without hard coded style
- task: DownloadPackage@1
inputs:
packageType: 'upack'
feed: 'TWI-NORA/twi-cci'
definition: '$(packageName)'
version: '1.0.0' # something like $(latestVersion)
extract: true
downloadPath: '$(System.ArtifactsDirectory)''
You could use *
as the version of the package. Then the “download package” task will download the latest version of the package.
For example:
- task: DownloadPackage@1
inputs:
packageType: 'upack'
feed: '1'
definition: '$(packageName)'
version: '*'
extract: true
downloadPath: '$(System.ArtifactsDirectory)'
Here is a doc about Downloading the latest version of package.
Hope this helps.