[JIRA] [github-plugin] (JENKINS-35132) Pipeline: GitHub webhook received but nothing happens

2016-06-11 Thread josh.chand...@golfchannel.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Josh Chandler commented on  JENKINS-35132 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Pipeline: GitHub webhook received but nothing happens  
 
 
 
 
 
 
 
 
 
 
I believe I have, yes - I am implementing the full pipeline as in the script I originally posted, and then hitting "Build Now". I was going to install webhooks to finish out the project when I encountered the issue. The pipeline itself runs without a hitch. I am using this code to do this: 
 stage 'Checkout Code' git credentialsId: 'my-credential-id', poll: false, url: 'https://github.com/my-org/my-repository.git' 
Setting 

poll: true
 makes no difference - I attempted a build just now with the flag set to true: the build was successful to the end, but the logs still read "Polling has not run yet." 
Is there some different incantation I should be using during the 'Checkout Code' phase that will accomplish this? Am I supposed to run an individual phase somehow instead of the entire pipeline? Is there some way I can force git-scm to initialize? 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [github-plugin] (JENKINS-35132) Pipeline: GitHub webhook received but nothing happens

2016-06-10 Thread lan...@yandex.ru (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Kirill Merkushev commented on  JENKINS-35132 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Pipeline: GitHub webhook received but nothing happens  
 
 
 
 
 
 
 
 
 
 
You should build wf job manually first time to initialize git-scm info. Did you try to build it without hook? 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [github-plugin] (JENKINS-35132) Pipeline: GitHub webhook received but nothing happens

2016-06-09 Thread josh.chand...@golfchannel.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Josh Chandler commented on  JENKINS-35132 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Pipeline: GitHub webhook received but nothing happens  
 
 
 
 
 
 
 
 
 
 
I remember seeing in the plugin code where polling could possibly be run, but it simply never reaches that block. Thinking these workflow job type objects don't fit the inheritance hierarchy expected to kick off a build, so the code after the hook is received never fires. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [github-plugin] (JENKINS-35132) Pipeline: GitHub webhook received but nothing happens

2016-06-09 Thread josh.chand...@golfchannel.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Josh Chandler updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Jenkins /  JENKINS-35132 
 
 
 
  Pipeline: GitHub webhook received but nothing happens  
 
 
 
 
 
 
 
 
 

Change By:
 
 Josh Chandler 
 
 
 

Attachment:
 
 github-polling-log.png 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [github-plugin] (JENKINS-35132) Pipeline: GitHub webhook received but nothing happens

2016-06-09 Thread josh.chand...@golfchannel.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Josh Chandler commented on  JENKINS-35132 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Pipeline: GitHub webhook received but nothing happens  
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [github-plugin] (JENKINS-35132) Pipeline: GitHub webhook received but nothing happens

2016-06-09 Thread lan...@yandex.ru (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Kirill Merkushev commented on  JENKINS-35132 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Pipeline: GitHub webhook received but nothing happens  
 
 
 
 
 
 
 
 
 
 
What is in github-polling log? 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [github-plugin] (JENKINS-35132) Pipeline: GitHub webhook received but nothing happens

2016-06-07 Thread whlabr...@gmail.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Will Hughes edited a comment on  JENKINS-35132 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Pipeline: GitHub webhook received but nothing happens  
 
 
 
 
 
 
 
 
 
 I am having the same problem Edit: And I can also confirm that if I make a freestyle project with the same repo and trigger the webhook, Jenkins recognises this and starts the build (only for the freestyle project) 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [github-plugin] (JENKINS-35132) Pipeline: GitHub webhook received but nothing happens

2016-06-07 Thread whlabr...@gmail.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Will Hughes commented on  JENKINS-35132 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Pipeline: GitHub webhook received but nothing happens  
 
 
 
 
 
 
 
 
 
 
I am having the same problem 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [github-plugin] (JENKINS-35132) Pipeline: GitHub webhook received but nothing happens

2016-05-25 Thread josh.chand...@golfchannel.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Josh Chandler commented on  JENKINS-35132 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Pipeline: GitHub webhook received but nothing happens  
 
 
 
 
 
 
 
 
 
 
Thanks for your response! 
I have attached a partially-redacted view of the config for the first job that gave me this issue. Particularly, I have redacted my organization name (by request of my superiors). Suffice it to say that when I do manually kick this off, it is able to reach git to pull code without an issue. The hook was installed successfully and I do receive it on my Jenkins. 
Here is the config for this job: 

 


"workflow-job@2.1">
  
  
  false
  
"github@1.19.1">
  https://github.com/org/toy-box.git/
  

  
  "org.jenkinsci.plugins.workflow.cps.CpsFlowDefinition" plugin="workflow-cps@2.2">
// Define all required variables. Most will be disseminated to the environment.
def projectName='toy-box'
def tagName = "1.1-" + new Date().format('MMdd') + '.' + env.BUILD_NUMBER
def imageName = "[REDACTED]"
def clusterToken="[REDACTED]"
def slack = [channel: '[REDACTED]', teamDomain: '[REDACTED]', token: '[REDACTED]']
def logPath = "/var/jenkins_home/jobs/${env.JOB_NAME}/builds/${env.BUILD_NUMBER}/log"
def deploymentResponders = "Could you please have a look?"

node {
try {
stage 'Checkout Code'
git credentialsId: '[REDACTED]', poll: false, url: 'https://github.com/org/toy-box.git'
stage 'Build Project'
def npmLocation = tool name: 'node_5.10.0', type: 'jenkins.plugins.nodejs.tools.NodeJSInstallation'
sh "${npmLocation}/bin/npm install"
stage 'Automated Test'
echo 'No tests defined for this project.'
stage 'Build Docker Image'
sh "docker-build.sh --image ${imageName}"
slackSend channel: slack.channel, color: 'good', message: "Docker image build success for build #${env.BUILD_NUMBER} of ${projectName}!", teamDomain: slack.teamDomain, token: slack.token
stage 'QA Deployment'
echo 'QA Deploy is being skipped at the moment. Please contact an administrator for more details.'
stage 'QA Testing Begins'
echo 'QA Test is being skipped at the moment. Please contact an administrator for more details.'
stage 'QA Testing Passed'
echo 'QA Test is being skipped at the moment. Please contact an administrator for more details.'
stage 'Production Deployment'
slackSend channel: slack.channel, color: 'good', message: "Awaiting deployment approval for build #${env.BUILD_NUMBER} of ${projectName}. " + deploymentResponders, teamDomain: slack.teamDomain, token: slack.token
input message: 'Ready to roll out?', ok: 'Go!'
sh "cloud-deployment.sh --image ${imageName} --deployment ${projectName} --token ${clusterToken}"
slackSend channel: slack.channel, color: 'good', message: "Production deploy success for build #${env.BUILD_NUMBER} of ${projectName}!", teamDomain: slack.teamDomain, token: slack.token
} catch (org.jenkinsci.plugins.workflow.steps.FlowInterruptedException fx) {
slackSend channel: slack.channel, color: 'red', message: "Build ${projectName}:#${env.BUILD_NUMBER} aborted.", teamDomain: slack.teamDomain, token: slack.token
} catch 

[JIRA] [github-plugin] (JENKINS-35132) Pipeline: GitHub webhook received but nothing happens

2016-05-25 Thread lan...@yandex.ru (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Kirill Merkushev commented on  JENKINS-35132 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Pipeline: GitHub webhook received but nothing happens  
 
 
 
 
 
 
 
 
 
 
Please provide your job config with trigger and scm section Also please enable logs as mentioned on plugin wiki and post them here after hook will be received. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] [github-plugin] (JENKINS-35132) Pipeline: GitHub webhook received but nothing happens

2016-05-25 Thread josh.chand...@golfchannel.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Josh Chandler updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Jenkins /  JENKINS-35132 
 
 
 
  Pipeline: GitHub webhook received but nothing happens  
 
 
 
 
 
 
 
 
 

Change By:
 
 Josh Chandler 
 
 
 
 
 
 
 
 
 
 I apologize if this is something known that I've overlooked.I've created a small pipeline project in Jenkins to manage Github pushes against some of my enabled repositories. These jobs were brand new, typed as Pipeline jobs (not multibranch - I haven't got the buy-in from my developers to add Jenkinsfiles yet). I have Jenkins configured to automatically create webhooks against these projects, which works perfectly. I am also able to manually run jobs, whereupon I can pull the code and the pipeline builds out as intended.The problem lies in Jenkins kicking off the build when the POST is received. For all of these repositories, watching the Jenkins logs, I see this:{ { noformat} May 25, 2016 4:09:45 PM org.jenkinsci.plugins.github.webhook.subscriber.DefaultPushGHEventSubscriber onEventINFO: Received POST for https://github.com/[org]/[repo] {noformat } } But afterwards, nothing happens: no build starts, no exceptions are triggered, nothing. I've read through the plugin and thought this might be a mismatched class type for the job, but I am not a pro at Java, much less Jenkins plugin syntax.Am I missing something here? Is there lacking support for this version?VERY much appreciate any help anyone can provide. I've been tearing my hair out about this for a few days. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups 

[JIRA] [github-plugin] (JENKINS-35132) Pipeline: GitHub webhook received but nothing happens

2016-05-25 Thread josh.chand...@golfchannel.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Josh Chandler created an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Jenkins /  JENKINS-35132 
 
 
 
  Pipeline: GitHub webhook received but nothing happens  
 
 
 
 
 
 
 
 
 

Issue Type:
 
  Bug 
 
 
 

Assignee:
 
 Kirill Merkushev 
 
 
 

Components:
 

 github-plugin 
 
 
 

Created:
 

 2016/May/25 4:39 PM 
 
 
 

Environment:
 

 Jenkins 2.3  Github Plugin 1.19.1  Git Plugin 2.4.4 
 
 
 

Priority:
 
  Minor 
 
 
 

Reporter:
 
 Josh Chandler 
 
 
 
 
 
 
 
 
 
 
I apologize if this is something known that I've overlooked. 
I've created a small pipeline project in Jenkins to manage Github pushes against some of my enabled repositories. These jobs were brand new, typed as Pipeline jobs (not multibranch - I haven't got the buy-in from my developers to add Jenkinsfiles yet). I have Jenkins configured to automatically create webhooks against these projects, which works perfectly. I am also able to manually run jobs, whereupon I can pull the code and the pipeline builds out as intended. 
The problem lies in Jenkins kicking off the build when the POST is received. For all of these repositories, watching the Jenkins logs, I see this: 
{{May 25, 2016 4:09:45 PM org.jenkinsci.plugins.github.webhook.subscriber.DefaultPushGHEventSubscriber onEvent INFO: Received POST for https://github.com/[org]/[repo]}} 
But afterwards, nothing happens: no build