Pact-jvm: Publish pact verification

Created on 1 May 2017  路  4Comments  路  Source: pact-foundation/pact-jvm

Most helpful comment

Released 4.5.4 with publishing verification results

All 4 comments

So we keep the functionality similar between the implementations, here's the doco from the ruby wiki:

Publishing verification results to a pact broker

If you are using version 1.11.0 or later of the pact gem and 2.0.0 or later of the pact broker, you can automatically publish the results of pact verifications back to the broker by setting the app_version and publish_verification_results options in your service provider configuration. The recommended way to do this so that you only publish verifications from your CI is:

build_number = ENV.fetch('BUILD_NUMBER','alpha')
publish_flag = !!ENV['BUILD_NUMBER']

Pact.service_provider "My Service Provider" do
  app_version "1.3.#{build_number}"
  publish_verification_results publish_flag
end

If your pact URL includes basic auth configurations for the pact broker, these will be used to publish the verification.

Released 4.5.4 with publishing verification results

馃憤

Was this page helpful?
0 / 5 - 0 ratings