vsts - How do I push a Team Services git repository after build to an external git repository? -
push different repository origin
i have team services git repository clone , build when releasing project. after build, push build artifact different git repository location.
git commands via command line tasks
i'm able initialize git repo build artifact via command line task (git init
), team service won't allow fetching, pulling , pushing via command line task.
external git endpoint
so, documentation says need use external git endpoint. don't see how can use endpoint push build to.
am missing something?
i did quick test didn't see issue. git repository can pushed external remote repository successfully.
to reduce steps in definition, created batch script perform git action , upload batch script vsts source control:
git init git add . git commit -m "vstsbuildartifacts" git remote add origin https://xxxxxxxxx git pull origin master git push origin master
following steps(i skipped build steps, copied files build output files):
Comments
Post a Comment