Hi. I'm trying to integrate the pact-cli into my ...
# pact-net
m
Hi. I'm trying to integrate the pact-cli into my ADO pipeline via a docker image. I can't get the pubish command to work. The problem seems to be that the volume mapped pact file cannot be seen by the publish command. I know the file is mapped correctly as I have used the following to prove this: docker run --rm -v $(Build.SourcesDirectory):/var/lib/pacts xyz.azurecr.io/pact-cli:v1 ls /var/lib/pacts/createdcontracts However, whenever I use the same path in my publish command I see a message about the files been missing e.g. "Specified pact file '/var/lib/pacts/createdcontacts' 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." My publish command in the pipeline looks like this: *docker run --rm -v $(Build.SourcesDirectory):/var/lib/pacts xyz.azurecr.io/pact-cli:v1 publish /var/lib/pacts/createdcontacts/ConsumerService-ProviderService.json -b="*" -k="**" -a="1.0.0 -v"*