Start-Process : The system cannot find the file specified from TeamCity Build step but works fine locally

624 views Asked by At

i am trying to run Pact broker can i deploy tool with paramaters which is working fine locally but when i add the build step in TeamCity it is throwing below error

Start-Process : This command cannot be run due to the error: The system cannot find the file specified. enter image description here

when i run the same powershell script locally, it is working fine .

powershell script: enter image description here

CanIDeploy.bat code is enter image description here

Note: the reason i am calling pact-broker.bat from power shell script is, unable to run bat file from Teamcity , that is the reason created powershell script which internally calls pact broker bat file. any help is appreciated

1

There are 1 answers

0
Dávid Laczkó On

I see that you use relative path, but what about the working directory? I see a different path in the error message vs what you show where the file is.