hi all, I’m using pact broker cli to publish pacts...
# pact-broker
p
hi all, I’m using pact broker cli to publish pacts
Copy code
./pact/bin/pact-broker version
1.59.0
command:
Copy code
./pact/bin/pact-broker publish ./target/pacts -a <version> -h master -g -b $PACT_BROKER_URL -u $PACT_BROKER_USERNAME -p $PACT_BROKER_PASSWORD
it works fine on my laptop, but it fails during gitlab build:
Copy code
PactBroker::Client::Hal::ErrorResponseReturned - Error making request to <url> status=503
...
<title>ERROR: The requested URL could not be retrieved</title>
...
<p id="sysmsg">The system returned: <i>(110) Connection timed out</i></p>
<p>The remote host or network may be down. Please try the request again.</p>
also
Copy code
mvn pact:publish
works on gitlub and I can establish connection using telnet from gitlub runner to pact broker what is the difference between maven plugin and cli client and how to fix cli issue?
maven plugin
<version>4.1.17</version>
b
I can't help you with the maven publish. You'll need to ask in the pact-jvm channel
The 503 sounds like you might have a proxy issue. Do you have a corporate VPN or proxy?
p
ok, thank you. Actually, maven plugin was working ok, I had 503 error with ruby cli tool, but I have tried different gitlab runner and now it works fine, pact was published