I am currently having the Problem, that I cannot publish my contracts to the pact-broker via https from my jenkins build server. From the local machine on windows, it works but remote I get the error:
[2021-04-07 12:05:19.058 +0000] INFO (15139 on l01): pact-node@10.12.1: Publishing Pacts to Broker
[2021-04-07 12:05:19.061 +0000] INFO (15139 on l01): pact-node@10.12.1: Publishing pacts to broker at: https://xxx.yyyy.zz/pact/
[2021-04-07 12:05:20.016 +0000] WARN (15139 on l01): pact-node@10.12.1: Pact exited with code 1.
[2021-04-07 12:05:20.016 +0000] ERROR (15139 on l01): pact-node@10.12.1: Could not publish pact:
Failed to publish XYZ/XYZ pact due to error: PactBroker::Client::Error - Authorization failed (insufficient permissions)
One or more pacts failed to be published
I am using the same Pact-User and Password. My docker compose:
I am currently having the Problem, that I cannot publish my contracts to the pact-broker via https from my jenkins build server. From the local machine on windows, it works but remote I get the error:
[2021-04-07 12:05:19.058 +0000] INFO (15139 on l01): pact-node@10.12.1: Publishing Pacts to Broker [2021-04-07 12:05:19.061 +0000] INFO (15139 on l01): pact-node@10.12.1: Publishing pacts to broker at: https://xxx.yyyy.zz/pact/ [2021-04-07 12:05:20.016 +0000] WARN (15139 on l01): pact-node@10.12.1: Pact exited with code 1. [2021-04-07 12:05:20.016 +0000] ERROR (15139 on l01): pact-node@10.12.1: Could not publish pact: Failed to publish XYZ/XYZ pact due to error: PactBroker::Client::Error - Authorization failed (insufficient permissions) One or more pacts failed to be published
I am using the same Pact-User and Password. My docker compose:
` version: "3"
services: postgres: image: postgres healthcheck: test: psql postgres --command "select 1" -U postgres ports:
pgdata:/var/lib/postgresql/data
broker_app: image: pactfoundation/pact-broker links:
volumes: pgdata: `