#691 - made possible to force install the latest version matching versionSpec

This commit is contained in:
Artur
2023-03-11 06:11:00 +01:00
parent 364926b235
commit 6f17d14286
56 changed files with 644 additions and 429 deletions

View File

@@ -21,6 +21,10 @@ ignoreFailedSources:
description: Treat package source failures as warnings.
required: false
default: false
preferLatestVersion:
description: Prefer to download the latest version matching the versionSpec, even if there is a local cached version.
required: false
default: 'false'
```
---
@@ -63,3 +67,16 @@ steps:
versionSpec: '6.x'
includePrerelease: true
```
### Example 4
Install the latest GitVersion 5 version even it there is a cached version matching the versionSpec.
```yaml
steps:
- task: gitversion/setup@0
displayName: Install GitVersion
inputs:
versionSpec: '5.x'
preferLatestVersion: true
```