How to access centralized script from build/release step (VSTFS 2018)

  • Thread starter Thread starter Paola M
  • Start date Start date
P

Paola M

Guest
I have a set of scripts that are used during the build and release process. Today, those scripts are copied from the Resources git repository in VSTFS to every agent (we have 40 agents in vstfs). In order to avoid that amount of copies, we would like to keep those files centralized in the git repository and just configure the build and release tasks to directly access the scripts, avoiding the copy. How can I get to this?



The repository where scripts reside looks like…

1514045.png



The build task of one of the applications look like the one below. $(ScriptsLocation) is currently a local path in the agent. I tried to initialize that variable to be the url to the git repository in tfs, something like http://servertools02:XXXX/tfs/DefaultCollection/TFS.Resources/_git/Resources?path=%2FScripts&version=GBmaster, but didn´t work.



1514047.png

Thanks in advance,

Paola

Continue reading...
 
Back
Top