git-webhooks

Read webhook payload in Gitlab CI

↘锁芯ラ 提交于 2020-08-24 10:19:29
问题 I have a project ( PROJECT_A ) that is triggered through a webhook, and expects the variable $PRODUCT to be set. Its value is used to trigger a certain path in the build. The job in the .gitlab-ci.yml file looks like this: deploy: stage: publish script: - ./generate_doc.sh $PRODUCT A webhook call looks like this: http://<GITLAB_URL>/api/v4/projects/710/ref/master/trigger/pipeline?token=<TOKEN>&variables[PRODUCT]=<PRODUCT> I call this trigger through a webhook from other projects, including

Github Webhook With Jenkins return 302 NotFound

筅森魡賤 提交于 2019-11-29 13:32:17
问题 I set up localhost jenkins, using ngrok to expose my jenkins to github. I didn't set up any credentials. When I test delivery from webhook, it shows 302 not found. Response: Content-Length: 0 Date: Mon, 16 Apr 2018 02:09:22 GMT Location: http://056b05cb.ngrok.io/github-webhook/ Server: Jetty(9.4.z-SNAPSHOT) X-Content-Type-Options: nosniff Request: Headers Request URL: http://056b05cb.ngrok.io/github-webhook Request method: POST content-type: application/json Expect: User-Agent: GitHub