-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1203 from arturcic/feature/gitversion-command
Add `gitversion/command` task/action, remove `additionalArguments` from `gitversion/execute`
- Loading branch information
Showing
39 changed files
with
984 additions
and
468 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
trigger: none | ||
|
||
variables: | ||
- name: DOTNET_SKIP_FIRST_TIME_EXPERIENCE | ||
value: 'true' | ||
- name: DOTNET_CLI_TELEMETRY_OPTOUT | ||
value: 'true' | ||
|
||
jobs: | ||
- job: GitVersion_v6_same_job | ||
displayName: GitVersion v6 (same job) | ||
pool: | ||
vmImage: ubuntu-latest | ||
steps: | ||
- checkout: self | ||
fetchDepth: 0 | ||
|
||
- task: gitversion/setup@2.0.1 | ||
displayName: Install GitVersion | ||
inputs: | ||
versionSpec: '6.x' | ||
|
||
- task: gitversion/execute@2.0.1 | ||
displayName: Determine Version | ||
name: version_step # step id used as reference for output values | ||
inputs: | ||
overrideConfig: | | ||
update-build-number=false | ||
- pwsh: | | ||
echo "FullSemVer (fullSemVer) : $(fullSemVer)" | ||
displayName: Display GitVersion variables (without prefix) | ||
- pwsh: | | ||
echo "FullSemVer (GitVersion_FullSemVer) : $(GitVersion_FullSemVer)" | ||
displayName: Display GitVersion variables (with prefix) | ||
- pwsh: | | ||
echo "FullSemVer (version_step.fullSemVer) : $(version_step.fullSemVer)" | ||
displayName: Display GitVersion outputs (step output without prefix) | ||
- pwsh: | | ||
echo "FullSemVer (version_step.GitVersion_FullSemVer) : $(version_step.GitVersion_FullSemVer)" | ||
displayName: Display GitVersion outputs (step output with prefix) | ||
- pwsh: | | ||
echo "FullSemVer (env:myvar_fullSemVer) : $env:myvar_fullSemVer" | ||
displayName: Display mapped local env (pwsh - outputs without prefix) | ||
env: | ||
myvar_fullSemVer: $(version_step.fullSemVer) | ||
- pwsh: | | ||
echo "FullSemVer (env:myvar_GitVersion_FullSemVer) : $env:myvar_GitVersion_FullSemVer" | ||
displayName: Display mapped local env (pwsh - outputs with prefix) | ||
env: | ||
myvar_GitVersion_FullSemVer: $(version_step.GitVersion_FullSemVer) | ||
- bash: | | ||
echo "FullSemVer (myvar_fullSemVer) : $myvar_fullSemVer" | ||
displayName: Display mapped local env (bash - outputs without prefix) | ||
env: | ||
myvar_fullSemVer: $(version_step.fullSemVer) | ||
- bash: | | ||
echo "FullSemVer (myvar_GitVersion_FullSemVer) : $myvar_GitVersion_FullSemVer" | ||
displayName: Display mapped local env (bash - outputs with prefix) | ||
env: | ||
myvar_GitVersion_FullSemVer: $(version_step.GitVersion_FullSemVer) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.