Akke Luukkonen
07/12/2022, 9:18 AM/var/lib
? I have a simpler version where I just mount it directly to root as /pacts
. For comparison, I'm publishing contracts using Docker in ADO with:
steps:
- task: DownloadPipelineArtifact@2
displayName: Download artifact containing pacts
inputs:
artifactName: ${{ parameters.pactsArtifactName }}
targetPath: $(Agent.TempDirectory)/pacts
- script: >
docker run
-e PACT_BROKER_TOKEN
-v $(Agent.TempDirectory)/pacts:/pacts
pactfoundation/pact-cli@sha256:ddefe0e43c3706884635a2642f2be366274679d7055f300ed92c4e384639ba0a
broker publish
/pacts
--consumer-app-version ${{ parameters.version }}
--branch ${{ parameters.branch }}
--broker-base-url https://<company>.<http://pactflow.io|pactflow.io>
displayName: Publish to Pactflow
env:
PACT_BROKER_TOKEN: $(SecretPactBrokerToken)
Myles Johnson
07/12/2022, 10:28 AMAkke Luukkonen
07/12/2022, 10:30 AM/var/lib/pacts/createdcontacts/ConsumerService-ProviderService.json
, but have you tried just passing in the directory itself like I've done so that it basically would publish all contracts from the directory? So just pass in /var/lib/pacts
without the filename.
No idea if it would help, but that's at least one difference I spot between our solutions 👀Akke Luukkonen
07/12/2022, 10:31 AMMyles Johnson
07/12/2022, 10:39 AMAkke Luukkonen
07/12/2022, 10:42 AMpactfoundation/pact-cli@sha256:ddefe0e43c3706884635a2642f2be366274679d7055f300ed92c4e384639ba0a
it's the 0.50.0.26 one from here (that I probably should update since there's newer ones available): https://hub.docker.com/r/pactfoundation/pact-cli/tagsMyles Johnson
07/12/2022, 10:52 AMMyles Johnson
07/12/2022, 10:54 AMMyles Johnson
07/12/2022, 10:55 AMAkke Luukkonen
07/12/2022, 10:58 AMMyles Johnson
07/12/2022, 2:48 PM