I'm trying to figure out how I can re-use some build's we have setup but point them at different VC GitHub repo's?
Currently, we have the following builds which all work great:
- WebSite (Dev)
- Unit Test - Azure Wokers (Dev)
- Unit Test - Foo (Dev)
Code is all up in private repo's on GitHub.
When a push to the private website repo is detected, TC runs the two unit test builds (dependencies) then runs the website build and deploys it.
The VC for those three builds are pointing the same private repo @ github company/mainRepo at the 'dev' branch.
works 100% wohoo!
** NOW **
the developers FORK the main repo. do their changes and push up their code to their OWN repo's. eg. me/MainRepo
So now in TC, we would like to have a build-per-developer that does the 2xunit tests + website (not deploy) compiles/builds.
So if i push my commits up to my fork, then TC goes: 'AH! PK has some new code. i'll downloading, compile, run 2x unit tests builds .. then the WebSite build .. against PK\MainRepo (dev branch)'.
Is there a way I can create a sorta build template for the unit tests and then pass in the source control credentials or something? So when i create the build-per-developer, i can then have 2x dependencies on the unit test builds but provide the VC credentials.. i guess?
can this be done?