Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update GitVersion task in Pipeline #746

Closed
PlagueHO opened this issue Apr 10, 2022 · 0 comments · Fixed by #747
Closed

Update GitVersion task in Pipeline #746

PlagueHO opened this issue Apr 10, 2022 · 0 comments · Fixed by #747
Assignees
Labels
enhancement The issue is an enhancement request.

Comments

@PlagueHO
Copy link
Member

Update azure-pipelines.yml to replace GitVersion task with:

          - pwsh: |
              dotnet tool install --global GitVersion.Tool
              $gitVersionObject = dotnet-gitversion | ConvertFrom-Json
              $gitVersionObject.PSObject.Properties.ForEach{
                  Write-Host -Object "Setting Task Variable '$($_.Name)' with value '$($_.Value)'."
                  Write-Host -Object "##vso[task.setvariable variable=$($_.Name);]$($_.Value)"
              }
              Write-Host -Object "##vso[build.updatebuildnumber]$($gitVersionObject.FullSemVer)"
            displayName: Calculate ModuleVersion (GitVersion)
@PlagueHO PlagueHO added enhancement The issue is an enhancement request. in progress The issue is being actively worked on by someone. labels Apr 10, 2022
@PlagueHO PlagueHO self-assigned this Apr 10, 2022
@johlju johlju removed the in progress The issue is being actively worked on by someone. label Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement The issue is an enhancement request.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants