ProboCI / probo-notifier

A small service that sends webhook and other notifications in response to builds run on Probo.CI.
Apache License 2.0
1 stars 0 forks source link

Webhook format #3

Open chrowe opened 7 years ago

chrowe commented 7 years ago

I am trying to use Zapier to connect Probo and Slack.

Zapier seems pretty flexible about the format of data they ingest but when I configure a webhook notification in my .probo.yml file and trigger a build Zapier is not seeing it.

Zappier works fine when when using their example code

curl -v -H "Accept: application/json" \
        -H "Content-Type: application/json" \
        -X POST \
        -d '{"first_name":"Bryan","last_name":"Helmig","age":27}' \
        https://zapier.com/hooks/catch/n/Lx2RH/

Is probo-notifier using a format similar to this?

chrowe commented 7 years ago

Also tried setting up my own webhook endpoint based on https://developer.github.com/webhooks/configuring/ and am not getting a response from Probo but curl works fine.

chrowe commented 7 years ago

Now just tried pointing at an apache server and watching the access log tail -f /var/log/apache2access.log

Sill nothing from Probo build notification but curl shows "POST / HTTP/1.1" 200 11783 "-" "curl/7.43.0"

chrowe commented 7 years ago

An update on this... Per https://probo-support.slack.com/archives/C0BGR9JMC/p1490023082099220 "configuration fixed" by @tizzo

After that I was able to get notifications working but each build triggers several webhooks and the status value is always pending so there is no way to just get notified of a passed or failed build. https://probo-support.slack.com/archives/C0BGR9JMC/p1490030621360749 @tizzo said he would put this on his todo list :)