Questions tagged [git-webhooks]

Questions related to using and implementing WebHooks with respect to Git version control system

54 questions
2
votes
2 answers

How to get the Generic Webhook Trigger Plugin to work with multibranch pipelines in Jenkins?

I'm trying to set up a scenario where a pull request is created on github that triggers a Jenkins multibranch pipeline, and where that multibranch pipeline uses the Generic Webhook Plugin to extract values from the POST request sent from github to…
Magnus
  • 3,086
  • 2
  • 29
  • 51
2
votes
2 answers

parameterized jenkins build with github webhooks

I configured my jenkins job (freestyle) with dev/test/prod environments using choice parameter with "This project is parameterised" option form jenkins job configuration. I have setup webhook in my github soouce as https://myjenkins/github-webhook/…
owner
  • 83
  • 1
  • 10
2
votes
3 answers

what is git branch name in jenkins pipeline when invoked by gitlab webhook

I can invoke a simple Jenkins pipeline from gitlab merge requests using a webhook. Now I'd like to know what is the source branch to make the checkout against it. Example: if I push code to develop branch, in my pipeline script i'd checkout develop…
3psilon
  • 135
  • 3
  • 11
2
votes
0 answers

Jenkins pipline - how to access github webhook payload

Im trying to build a Jenkins pipeline which enforces gitflow. My requirements are that when there is a merge from the release branch (e.g. release/v1.0.0) to master i will use the same docker image that was created during the last commit on the…
2
votes
2 answers

Trigger jenkins build when github PR raised

I want Jenkins to trigger build automatically when GitHub PR created, but it seems GitHub unable to communicate with Jenkins, getting an error in GitHub webhook as "We couldn’t deliver this payload: Service Timeout" which is automatically created…
Viren
  • 21
  • 4
1
vote
1 answer

push only last committed files to the server from git remote repo using github webhooks

I am new to GitHub, i m doing the following local file push to GitHub remote repo (local -> git remote repo) and then using web-hooks (once local files push to git remote repo) automatically send all files to my server / web hosting (git remote…
Udhayakumar
  • 261
  • 1
  • 10
1
vote
0 answers

Discord GitHub Webhook add role ping

I am using a Webhook to integrate Discord with GitHub for sending messages when a repository has been pushed to. However, I want the webhook to automatically ping a certain role (I have an @Updates role in the server) whenever this happens. Is there…
Krishnan Shankar
  • 780
  • 9
  • 29
1
vote
1 answer

Github stars not showing correctly in packagist

I have recently created an open source project in github. https://github.com/sagautam5/local-states-nepal And then, I have uploaded this package to https://packagist.org, After that, I have made auto updating by adding web hook. Main problem is star…
Sagar Gautam
  • 9,049
  • 6
  • 53
  • 84
1
vote
1 answer

GitHub webooks and custom payload

I'm looking at adding a couple of other name/value pairs in the json payload that is sent when a webhook detects an event. Is there a way to add in a value to the payload that is sent? { "ref": "release123", "ref_type": "branch", "master_branch":…
Jimmy Chen
  • 207
  • 5
  • 12
1
vote
0 answers

Jenkins Multibranch Pipeline: Differentiate between build triggered by branch indexing vs webhook

I have a Jenkins multibranch pipeline for github and currently it triggers builds whenever a branch is indexed. I have certain actions in my pipeline that I only want triggered whenever there are changes to a branch (on a webhook push). So I was…
Fizi
  • 1,749
  • 4
  • 29
  • 55
1
vote
1 answer

Github webhook for codepileline not triggering when there is a commit in git repo

I have set up an aws code pipeline where Git is used for the repository and have chosen GitHub webhooks as change detection mode. the pipeline works great when I manually trigger the pipeline by clicking on the Release change button. But when I try…
sumanth shetty
  • 1,851
  • 5
  • 24
  • 57
1
vote
1 answer

AWS CodePipeline GitHub webhook can not be registered with GitHub if repo is an organisation repository

When I set up the hook using the console it works, but when I try to do it using cloudformation it never works. It does not even work if I use the AWS CLI version: aws codepipeline register-webhook-with-third-party --webhook-name…
Markus Wahl
  • 11
  • 1
  • 2
1
vote
1 answer

ServiceStack Webhook + ServiceStack.Webhooks.OrmLite Subscription Store Plugin Issue

I have enabled Webhook for my ServiceStack project in which I am using ServiceStack.Webhooks.OrmLite OrmLiteSubscriptionStore to store my subscription everything works fine except Delete operation, it gives below error: { "responseStatus": { …
1
vote
0 answers

Took more time to initiate CI job when GitLab merge request created

I am using the Gitlab version of GitLab Community Edition 10.3.5. For Gitlab integration with CI, I have written the Gitlab webhook and using it for CI using Jenkins. While creating a new merge request in Gitlab, it's taking more time to initiate…
Elango R
  • 137
  • 8
1
vote
1 answer

Prevent GitHub Webhook being sent from Pushing of Tag

I am having an issue with my Jenkins pipeline that pushes a tag as one of the steps, this ultimately kicks off the build again causing a loop. Doesn't GitHub have a way of only sending a webhook with a source commit to the repo and not a tag?
Duker
  • 11
  • 1