chandu
chandu

Reputation: 385

vNext build process : How to push the file after updating, back to tfs git?

We have vNext build setup for official releases. We are using Tfs 2015 vNext build with git version control. During the automated build process, we update one version file with powershell script. And we want to push it back to repository after the file being updated with new version.

Any help in this regards really appreciated. Thanks in advance.

Upvotes: 0

Views: 453

Answers (2)

astro8891
astro8891

Reputation: 552

Video 2 in this short series (20 min) will show you how to exactly configure what you need and provides hand on examples of changing a file and pushing back to Git. Hope this helps https://mva.microsoft.com/en-US/training-courses/enabling-devops-practices-with-visual-studio-online-build-12478?l=Gwpyl6BOB_4305094681

Upvotes: 0

Philippe
Philippe

Reputation: 31137

The build server should have git in the path and you just have, in your build process to :

  1. git add your_file
  2. git commit -m "update version by the build"
  3. git rebase (in case your build is long and someone already pushed something else)
  4. git push

Done.

Upvotes: 2

Related Questions