Skip to content

Build not Calculated well on AzureDevops #3723

Discussion options

You must be logged in to vote

So after a-lot of investigations I concluded the following

My Initial code

   - checkout: self
      path: s
      fetchDepth: 0
      clean: true

    - task: Bash@3
      name: StoreSemVer
      inputs:
        targetType: 'inline'
        script: |
          gitversion_version=$(docker run --rm -v $(pwd):/s gittools/gitversion:5.12.0-ubuntu.20.04-6.0 /s GitVersion.yml)
          SemverVersion=$(echo "$gitversion_version" | jq -r .SemVer)
          echo "##vso[build.updatebuildnumber]$SemverVersion"

Conclusions

  • Setting parameter clean:true does not work as expected. Not all the files are really cleaned + orphaned files still remain on the agent
  • When cleaning the workspace with workssp…

Replies: 6 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by HHobeck
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #3700 on October 10, 2023 07:02.