locked
TFS Build: Create git-tag during build RRS feed

  • Question

  • I am trying tag sources during a build with the build number. To create the tag via command-line is not rocket science, but that prompts me for my login details.

    How would I be able to modify my build process to create a git tag just after it got the source from git.

    With normal TFS source control, this is a standard thing that happens, we now need this to happen when we build our git source code also.

    Thanks, MS

    Monday, February 23, 2015 8:17 AM

Answers

  • Hi Marais, 

    Thanks for your reply.

    We cannot provide the username and password as parameters in git command currently. I think you can try the first reply’s solution in this post: https://gittf.codeplex.com/workitem/21.

    For this create Tag during Git build scenario, please submit it to User Voice site at: http://visualstudio.uservoice.com/forums/121579-visual-studio. Microsoft engineers will evaluate them seriously.  


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.


    Thursday, February 26, 2015 7:07 AM
    Moderator

All replies

  • Hi Marais,  

    Thanks for your post.

    First, please ensure you can manually execute git command using your TFS Build Service account to create Tag for your build sources. Then add the InvokeProcess activity in your build process template to execute that same command line.


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Tuesday, February 24, 2015 5:15 AM
    Moderator
  • Thanks but my problem come in when trying to push tags to the server. I am getting prompted for credentials. The get docs is not really helpful to specify credentials as part of the push, I am getting prompted for it, and that won't really help in an automated build environment.
    Wednesday, February 25, 2015 8:55 AM
  • Hi Marais, 

    Thanks for your reply.

    We cannot provide the username and password as parameters in git command currently. I think you can try the first reply’s solution in this post: https://gittf.codeplex.com/workitem/21.

    For this create Tag during Git build scenario, please submit it to User Voice site at: http://visualstudio.uservoice.com/forums/121579-visual-studio. Microsoft engineers will evaluate them seriously.  


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.


    Thursday, February 26, 2015 7:07 AM
    Moderator