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):

  1. create empty build definition.
  2. add "copy files" task , configure copy files "$(build.artifactstagingdirectory)" folder. enter image description here
  3. add "batch script" task , set "path" batch script file , "working folder" "$(build.artifactstagingdirectory)". enter image description here
  4. save definition , queue build.enter image description here

Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -