{"action":"created","issue":{"url":"https://api.github.com/repos/Nerdwin15/stash-jenkins-postreceive-webhook/issues/178","repository_url":"https://api.github.com/repos/Nerdwin15/stash-jenkins-postreceive-webhook","labels_url":"https://api.github.com/repos/Nerdwin15/stash-jenkins-postreceive-webhook/issues/178/labels{/name}","comments_url":"https://api.github.com/repos/Nerdwin15/stash-jenkins-postreceive-webhook/issues/178/comments","events_url":"https://api.github.com/repos/Nerdwin15/stash-jenkins-postreceive-webhook/issues/178/events","html_url":"https://github.com/Nerdwin15/stash-jenkins-postreceive-webhook/issues/178","id":193216076,"number":178,"title":"Using git webhook, jenkins run build when code pushed to specific Branch ","user":{"login":"guruvamsichintala","id":14080985,"avatar_url":"https://avatars.githubusercontent.com/u/14080985?v=3","gravatar_id":"","url":"https://api.github.com/users/guruvamsichintala","html_url":"https://github.com/guruvamsichintala","followers_url":"https://api.github.com/users/guruvamsichintala/followers","following_url":"https://api.github.com/users/guruvamsichintala/following{/other_user}","gists_url":"https://api.github.com/users/guruvamsichintala/gists{/gist_id}","starred_url":"https://api.github.com/users/guruvamsichintala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guruvamsichintala/subscriptions","organizations_url":"https://api.github.com/users/guruvamsichintala/orgs","repos_url":"https://api.github.com/users/guruvamsichintala/repos","events_url":"https://api.github.com/users/guruvamsichintala/events{/privacy}","received_events_url":"https://api.github.com/users/guruvamsichintala/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-12-02T20:57:23Z","updated_at":"2016-12-19T16:11:38Z","closed_at":null,"body":"I have scenario where I have two branches B1 and B2. I have configured two jobs in Jenkins which builds those branches when something is pushed to github. Right now even though some one pushed code into B1, jenkins runs both the jobs as webhook triggered jenkins with code push. Is there a way I can run jenkins job using git webhook where B1 job must run only when git receives push for B1 "},"comment":{"url":"https://api.github.com/repos/Nerdwin15/stash-jenkins-postreceive-webhook/issues/comments/268004511","html_url":"https://github.com/Nerdwin15/stash-jenkins-postreceive-webhook/issues/178#issuecomment-268004511","issue_url":"https://api.github.com/repos/Nerdwin15/stash-jenkins-postreceive-webhook/issues/178","id":268004511,"user":{"login":"RishabhTayal","id":2100166,"avatar_url":"https://avatars.githubusercontent.com/u/2100166?v=3","gravatar_id":"","url":"https://api.github.com/users/RishabhTayal","html_url":"https://github.com/RishabhTayal","followers_url":"https://api.github.com/users/RishabhTayal/followers","following_url":"https://api.github.com/users/RishabhTayal/following{/other_user}","gists_url":"https://api.github.com/users/RishabhTayal/gists{/gist_id}","starred_url":"https://api.github.com/users/RishabhTayal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RishabhTayal/subscriptions","organizations_url":"https://api.github.com/users/RishabhTayal/orgs","repos_url":"https://api.github.com/users/RishabhTayal/repos","events_url":"https://api.github.com/users/RishabhTayal/events{/privacy}","received_events_url":"https://api.github.com/users/RishabhTayal/received_events","type":"User","site_admin":false},"created_at":"2016-12-19T16:11:38Z","updated_at":"2016-12-19T16:11:38Z","body":"@guruvamsichintala we are not using this plugin on Github. It's on stash server(aka bit bucket server)."}}
{"actor":{"display_login":"RishabhTayal"}}