boden winkel
01/23/2024, 7:21 PMSpecified pact file '/pacts/somePact.json' does not exist. This sometimes indicates one of the arguments has been specified with the wrong name and has been incorrectly identified as a file path. If you are using Docker, check that you have mounted the pact file or directory into the container correctly using `-v`, and have specified the location of the pact file or directory in the *Docker container*, not the *host*.
chmod 755 $(Build.SourcesDirectory)/someFolder/src/pacts/somePact.json
docker run --rm -v $(Build.SourcesDirectory)/someFolder/src/pacts/somePact.json:/pacts pactfoundation/pact-cli:latest pact-broker publish /pacts/somePact.json --broker-base-url=<https://somecompany.pactflow.io> --broker-token=token--consumer-app-version=$(version.packageSemVer)
Matt (pactflow.io / pact-js / pact-go)
boden winkel
01/24/2024, 7:44 AMboden winkel
01/24/2024, 8:18 AMMatt (pactflow.io / pact-js / pact-go)
boden winkel
01/25/2024, 9:06 AMMatt (pactflow.io / pact-js / pact-go)