Revert "Merge pull request #814 from GitTools/feature/691"

This reverts commit 20cee55108.
This commit is contained in:
Artur
2023-03-11 06:17:42 +01:00
parent 20cee55108
commit ae4777b171
56 changed files with 429 additions and 644 deletions

View File

@@ -2,7 +2,7 @@
```yaml
steps:
- task: gitreleasemanager/close@0
- task: gitreleasemanager/close@0
inputs:
token: '$(GITHUB_TOKEN)'
owner: 'someOwner'

View File

@@ -2,7 +2,7 @@
```yaml
steps:
- task: gitreleasemanager/open@0
- task: gitreleasemanager/open@0
inputs:
token: '$(GITHUB_TOKEN)'
owner: 'someOwner'

View File

@@ -226,19 +226,18 @@ steps:
Calculate the version for the build and use the `GitVersion.BranchName` variable in a condition for starting another job.
```yaml
jobs:
- job: CalculateVersion
displayName: Calculate version using GitVersion
steps:
# gitversion/setup@0 task omitted for brevity.
job: CalculateVersion
displayName: Calculate version using GitVersion
steps:
# gitversion/setup@0 task omitted for brevity.
- task: gitversion/execute@0
displayName: Use GitVersion
name: Version # the step MUST be named to access its output variables in another job.
- task: gitversion/execute@0
displayName: Use GitVersion
name: Version # the step MUST be named to access its output variables in another job.
- job: CreateReleaseNotes
condition: and(succeeded(), eq(dependencies.CalculateVersion.outputs['Version.GitVersion.BranchName'], 'main'))
dependsOn: CalculateVersion
job: CreateReleaseNotes
condition: and(succeeded(), eq(dependencies.CalculateVersion.outputs['Version.GitVersion.BranchName'], 'main'))
dependsOn: CalculateVersion
```
### Example 8
@@ -246,19 +245,18 @@ jobs:
Calculate the version for the build and map the `GitVersion.SemVer` variable into a variable in another job.
```yaml
jobs:
- job: CalculateVersion
displayName: Calculate version using GitVersion
steps:
# gitversion/setup@0 task omitted for brevity.
job: CalculateVersion
displayName: Calculate version using GitVersion
steps:
# gitversion/setup@0 task omitted for brevity.
- task: gitversion/execute@0
displayName: Use GitVersion
name: Version # the step MUST be named to access its output variables in another job.
- task: gitversion/execute@0
displayName: Use GitVersion
name: Version # the step MUST be named to access its output variables in another job.
- job: BuildAndPack
variables:
Ver.MajorMinorPatch: $[ dependencies.CalculateVersion.outputs['Version.GitVersion.MajorMinorPatch'] ]
job: BuildAndPack
variables:
Ver.MajorMinorPatch: $[ dependencies.CalculateVersion.outputs['Version.GitVersion.MajorMinorPatch'] ]
```
### Example 9

View File

@@ -21,10 +21,6 @@ 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'
```
---
@@ -67,16 +63,3 @@ 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
```