TeamCity: On successful build push to Git Repo

前端 未结 5 2076
醉梦人生
醉梦人生 2020-12-15 07:28

Can TeamCity push successful builds to a git repository?

I cannot see a specific build step in TeamCity to do this.
I use the version 7.1.1 of TeamCity

T

5条回答
  •  醉酒成梦
    2020-12-15 07:28

    i finally made it!

    You have to add a build parameter in your teamcity project:

    name= env.PATH
    value= C:\Program Files (x86)\Git\cmd
    

    and then you add a new commandline build step with custom script:

    call git push "C:\Gruene Git Repos\TeamCityApp" master
    

    the "call" word is important!

    Thanks for the help! henrik

提交回复
热议问题