Start new console from build
Answered
Hey there,
I am trying to start a .exe program from the build runner, but I don't want it to run in the teamcity console, I want a brand new console that runs independently from the current build. So far I have tried a few things without any success.
Tried with a powershell script:
$ErrorMessage = "POWERSHELL ERROR"
try {
Write-Output "About to start backend"
Start-Process Program.exe
Write-Output "Started backend"
} Catch {
Write-Output $ErrorMessage
exit(1)
}
Tried starting a new console with this command:
Start Program.exe
I'm starting to wonder if it's even possible.
Please sign in to leave a comment.
Hello Yann,
Do you run agent as service? Please try to start agent via command line, for more details see the section.
Thanks for the answer, this is exactly what I needed !