I see these two system variables ```Dpact.provider...
# pact-jvm
s
I see these two system variables
Copy code
Dpact.provider.branch=${GIT_BRANCH}
Dpactbroker.providerBranch=${GIT_BRANCH}
Are they the same?
s
If I want to enable pending pact is this config enough?
Copy code
stage('Contract Tests: Provider Verify') {
                    when {
                        expression { PACT_PROVIDER == true }
                    }
                    steps {
                        sh """mvn test -Pcontract-tests-provider-verify \
                        -Dpact.verifier.publishResults=true \
                        -Dpact.provider.version=${GIT_COMMIT} \ 
                        -Dpact.provider.branch=${GIT_BRANCH} \ -->> register branch
                        -Dpactbroker.providerBranch=${GIT_BRANCH} \ -->> enable pending pact
                        -Dpact.broker.consumerversionselectors.rawjson=[{"mainBranch":true},{"deployed":true}]"""
                    }
                }
u
I imagine so, it looks ok to me.
Is it not working as you expect?
s
I am testing it right now. I used to have
pactbroker.providerTags,
but we want to move away from tags.