I have developed a custom build runner. It runs a batch file in the checkout directory in the agent.
In the source code, I use BuildServiceAdapter::makeProgramCommandLine() to return createProgramCommandLine( batchpath, arg ) to run the batch in agent.
Since the default build path is the checkout directory, while running the batch file, there is a warning saying that the batch file could not be run in UNC path. Although it changes the directory the C:/ automatically, the present of warning still makes someone feel not good.
So is there any function or interface that can change the working directory? As I don't want to input it in the UI for every project.
Thank you.