I\'d like to automatically tag a commit when a build is successful on VSO build vNext. I\'ve read the doc including this page https://msdn.microsoft.com/Library/vs/alm/Build/scr
I'm answering myself on what I was trying to do (git tag was one of the few tasks I wanted to do). It's now possible to execute git commands in scripts. The documentation is here : https://www.visualstudio.com/en-us/docs/build/scripts/git-commands
Here is the howto:
Enable scripts to run Git commands
Grant version control permissions to the build service:
Typically you'll want to grant:
When you're done granting the permissions, make sure to click Save changes.
Enable your build definition to run Git.exe
On the variables tab set this variable: system.prefergit
to true
On the options tab select Allow scripts to access OAuth token.
To answer the question (or better the title of the question). Just let the vNext build do it.
As mentioned in the comments, this is not available for external git repositories.