1

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

beginner
  • 39
  • 7
  • The error suggests that the file isn't present, which seems to be the issue - can you please show us conclusive evidence that the file indeed isn't present in the location specified? – Matthew Fellows Nov 30 '18 at 05:41

1 Answers1

0

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.

Dávid Laczkó
  • 1,091
  • 2
  • 6
  • 25