[JIRA] (JENKINS-50918) Bitbucket Source webhook endpoint fails: X-Event-Key HTTP header not found

2018-04-20 Thread dv...@yahoo.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 R T closed an issue as Won't Fix  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Line 94 of the code throws this when an eventKey is not passed as part of the request. Using a browser would do that. https://github.com/jenkinsci/bitbucket-branch-source-plugin/blob/fed749a4860d0171d89422fb0f5aa8dcfc48c6cd/src/main/java/com/cloudbees/jenkins/plugins/bitbucket/hooks/BitbucketSCMSourcePushHookReceiver.java  
 

  
 
 
 
 

 
 Jenkins /  JENKINS-50918  
 
 
  Bitbucket Source webhook endpoint fails: X-Event-Key HTTP header not found   
 

  
 
 
 
 

 
Change By: 
 R T  
 
 
Status: 
 Open Closed  
 
 
Resolution: 
 Won't Fix  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   




[JIRA] (JENKINS-50918) Bitbucket Source webhook endpoint fails: X-Event-Key HTTP header not found

2018-04-20 Thread dv...@yahoo.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 R T created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-50918  
 
 
  Bitbucket Source webhook endpoint fails: X-Event-Key HTTP header not found   
 

  
 
 
 
 

 
Issue Type: 
  Bug  
 
 
Assignee: 
 Unassigned  
 
 
Components: 
 bitbucket-branch-source-plugin  
 
 
Created: 
 2018-04-20 20:56  
 
 
Environment: 
 CentOS 7 centos-release-7-4.1708.el7.centos.x86_64  openjdk version "1.8.0_161"  OpenJDK Runtime Environment (build 1.8.0_161-b14)  OpenJDK 64-Bit Server VM (build 25.161-b14, mixed mode)  Jenkins 2.100-1.1 installed via Yum  Bitbucket Branch Source 2.2.10  Bitbucket Build Status Notifier 1.3.3  Bitbucket Plugin 1.1.8  Pipeline 2.5  Pipeline API 2.26  Apache HttpComponents Client 4.x API 4.5.3-2.1  Display URL API 2.2.0  
 
 
Labels: 
 webhook bitbucket  
 
 
Priority: 
  Major  
 
 
Reporter: 
 R T  
 

  
 
 
 
 

 
 I've got one webhook working on Bitbucket Cloud for freestyle jobs. I have created a multibranch pipeline and added the Bitbucket Source plugin to facilitate a separate webhook for it. I created a second webhook for the bitbucket-scmsource-hook/notify endpoint endpoint. Jenkins is not recognizing payloads from Bitbucket for this new webhook. When I simply visit https://myjenkins/bitbucket-scmsource-hook/notify, the following is displayed:   

 

java.lang.Exception: X-Event-Key HTTP header not found
	at org.kohsuke.stapler.HttpResponses.error(HttpResponses.java:83)
	at com.cloudbees.jenkins.plugins.bitbucket.hooks.BitbucketSCMSourcePushHookReceiver.doNotify(Bit