Chandra Muddam
10/16/2023, 5:15 AMChandra Muddam
10/16/2023, 5:19 AMChandra Muddam
10/16/2023, 5:54 AMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
${pactbroker.pactUrl} to the body of the webhook. This will make the value available to teamcity when the build triggers. You then need to extract that value out of the payload from Team city (it looks like you’ve copied this already: https://docs.pact.io/pact_broker/webhooks/template_library#teamcity---trigger-build). So my guess is that env.<blah> will generate environment variables for team city.
So, something like this should do it:
{
"name": "env.pactUrl",
"value": "${pactbroker.pactUrl}"
}
And then from your .NET code, it won’t be PACT_URL it will be pactUrlMatt (pactflow.io / pact-js / pact-go)
name properties to suitMatt (pactflow.io / pact-js / pact-go)
{
"name": "env.PACT_URL",
"value": "${pactbroker.pactUrl}"
}Matt (pactflow.io / pact-js / pact-go)
Not sure if I need to post this question in #CLS16AVEE or #C9UTHV2AD channel (edited)it’s a tricky question - it cuts all of these channels. Here is fine, I think
Chandra Muddam
10/16/2023, 6:17 AMChandra Muddam
10/16/2023, 6:30 AMMatt (pactflow.io / pact-js / pact-go)
Chandra Muddam
10/16/2023, 6:44 AMChandra Muddam
10/16/2023, 11:20 AM