Hi guys! I am facing a problem publishing results ...
# pact-broker
b
Hi guys! I am facing a problem publishing results to the broker. To give some context: 1. Broker is deployed in AWS (dockers with compose) 2. Jenkins is hosted in the company domain 3. Two jobs are set in Jenkins: a. one for the consumer b. one for the provider 4. jenkins is added in the broker's whitelist
Copy code
2022-10-20 10:02:31.347940 I [7:4360] pact-broker -- webhook_host_whitelist=["<http://jenkins.secretcompanyname.com|jenkins.secretcompanyname.com>", "<http://github.com|github.com>", "<http://secretcompanyname.slack.com|secretcompanyname.slack.com>"] source={:type=>:env, :key=>"PACT_BROKER_WEBHOOK_HOST_WHITELIST"}
Issue: • Consumer: ◦ if I run it from Local machine (IntelliJ) -> Contract gets published to the broker ◦ If I run it from Jenkins -> Contract also gets published to the broker • Provider ◦ if I run it from Local machine (IntelliJ) -> Result gets published to the broker ◦ If I run it from Jenkins -> Result does NOT get published to the broker as the connection can't be established
Copy code
org.apache.http.conn.ConnectTimeoutException: Connect to my.secret.ip:9292 [/my.secret.ip] failed: Connection timed out
	at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:157)
Any ideas as why only the provider can't connect to the Broker from Jenkins but the consumer can (from the same Jenkins) ?
b
Looks like a networking issue.
It’s hard to tell without seeing the full logs.
Can you turn on verbose logging, and see if that helps you?
I can’t see that this issue has anything to do with webhooks however.
This is just about publishing verification results from Jenkins.
b
thanks Beth - it was indeed a network issue we had.