Vorashil Farzaliyev
05/19/2022, 11:09 AMdocker run --rm \
-w "${PWD}" \
-v "${PWD}:${PWD}" \
-e PACT_BROKER_BASE_URL \
pactfoundation/pact-cli:latest \
broker publish "${PWD}/build/pacts" \
--consumer-app-version "$PACT_VERSION" \
--branch "$GIT_BRANCH" \
--broker-base-url "$PACT_BROKER_BASE_URL" \
--broker-token "$PACTFLOW_TOKEN" \
Error on CI:
Specified pact file '/godata/pipelines/currency-conversion-library/currency-conversion-library/build/pacts' 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.
I can provide more logs if needed. Currently I have checked everything I could think of, including whether the environmental variables are set or the pacts folder has a json file in it. The only difference between my local machine and GoCD pipeline is the docker version. (My machine runs v20, while GoCD runs v19). Can you please suggest what else I can try to check here? Or is there any other way of publishing pacts from CI/CD other than this docker imageYousaf Nabi (pactflow.io)
Vorashil Farzaliyev
05/19/2022, 1:51 PMVorashil Farzaliyev
05/19/2022, 1:51 PMYousaf Nabi (pactflow.io)
Vorashil Farzaliyev
05/19/2022, 2:27 PMYousaf Nabi (pactflow.io)
Vorashil Farzaliyev
05/19/2022, 2:36 PMYousaf Nabi (pactflow.io)
Yousaf Nabi (pactflow.io)
Matt (pactflow.io / pact-js / pact-go)
--verbose
to the command to see if it gives you any additional insightsMatt (pactflow.io / pact-js / pact-go)
${PWD}
so we see what the mapping isMatt (pactflow.io / pact-js / pact-go)
ls -la
on /godata/pipelines/currency-conversion-library/currency-conversion-library/build/pacts
Matt (pactflow.io / pact-js / pact-go)