xin chen
03/30/2023, 3:20 PMpact {
broker {
pactBrokerUrl = '<https://company.test.stp.hmlr.zone/>'
}
the pact broker won't be found. Not sure why it does not work. Please help. Thank you.uglyog
@PactBroker annotation does not work with the config in the Gradle build file, that is only used by the Gradle plugin. You can use system properties with that annotation. Refer to https://github.com/pact-foundation/pact-jvm/tree/master/provider/junit#using-java-system-properties but also take note of https://github.com/pact-foundation/pact-jvm/tree/master/provider/junit5#important-note-jvm-system-properties[…]build-is-running-with-gradle-or-mavenxin chen
04/03/2023, 9:56 AMserviceProviders {
fromPactBroker {
withSelectors {
branch('poc-contract-testing')
}
}
}
Please give some suggestions. Many thanks.uglyog
pact.provider.branch to set the branchxin chen
04/04/2023, 9:04 AM