Re: How to make Jenkins build something on pushing to GitHub?
Hi, Yep, I switched to Multibranch pipeline. You can find my "report" here: https://stackoverflow.com/a/42968421/52499 But I haven't finished setting up Jenkins. But at least it now starts the build when new commits come. Regards, Yuri -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/7ccae07d-947e-409c-af56-c2cdc62c2cd5%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: How to make Jenkins build something on pushing to GitHub?
Hello Yuri, Am in an identical situation. Were you able to nail this issue? /Ram On Thursday, March 23, 2017 at 12:01:39 PM UTC+5:30, Yuri Kanivetsky wrote: > > Your job need to have a scm configuration for it to be triggered on >> commits. Either configure it as Multibranch Pipeline job or add a "git" or >> checkout step in your normal pipeline. >> > > Can you elaborate on 'add a "git" or checkout step in your normal > pipeline' part? I tried it with this pipeline: > > node { > git credentialsId: 'b22c8273-0293-8364-2463-233ab3898fe', url: > 'g...@github.com:USER/REPO.git' > echo 'Hello World' > } > > I can see notification from GitHub coming in Jenkins' System Log, but > build doesn't get triggered. > > In the pipeline I created I checked "GitHub project", filled in the > "Project url" text field (e.g., https://github.com/rails/rails), and > checked "GitHub hook trigger for GITScm polling". > > Just in case, relevant Stack Overflow question: > http://stackoverflow.com/questions/42897125/how-do-i-make-jenkins-do-anything-on-git-commit/42968421 > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/13a9aa6a-de93-4ce5-944c-4a0f428ccb55%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: How to make Jenkins build something on pushing to GitHub?
> > Your job need to have a scm configuration for it to be triggered on > commits. Either configure it as Multibranch Pipeline job or add a "git" or > checkout step in your normal pipeline. > Can you elaborate on 'add a "git" or checkout step in your normal pipeline' part? I tried it with this pipeline: node { git credentialsId: 'b22c8273-0293-8364-2463-233ab3898fe', url: 'g...@github.com:USER/REPO.git' echo 'Hello World' } I can see notification from GitHub coming in Jenkins' System Log, but build doesn't get triggered. In the pipeline I created I checked "GitHub project", filled in the "Project url" text field (e.g., https://github.com/rails/rails), and checked "GitHub hook trigger for GITScm polling". Just in case, relevant Stack Overflow question: http://stackoverflow.com/questions/42897125/how-do-i-make-jenkins-do-anything-on-git-commit/42968421 -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/6f121dc6-3549-4402-b189-a111b503f819%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: How to make Jenkins build something on pushing to GitHub?
http://stackoverflow.com/questions/30576881/jenkins-build-when-a-change-is-pushed-to-github-option-is-not-working вторник, 21 марта 2017 г., 20:52:30 UTC+1 пользователь Yuri Kanivetsky написал: > > Hi, > > I have a pipeline job. It has "GitHub project" checked in settings. > Project url is specified. And "GitHub hook trigger for GITScm polling" is > checked in Build Triggers. I can see notifications coming from GitHub in > System Log: > > Mar 21, 2017 7:23:28 PM INFO > org.jenkinsci.plugins.github.webhook.subscriber.DefaultPushGHEventSubscriber > onEvent > Received PushEvent for https://github.com/user/prj from 10.0.3.1 ⇒ > http://jenkins.rademade.com:8080/github-webhook/ > Mar 21, 2017 7:23:28 PM INFO > org.jenkinsci.plugins.github_branch_source.PushGHEventSubscriber onEvent > Received PUSH for https://github.com/user/prj from 10.0.3.1 ⇒ > http://jenkins.rademade.com:8080/github-webhook/ > > The job has hello world pipeline. Jenkins master node is running in lxc > container, if anything. And doesn't have slave nodes. But when I click > "Build Now" it sort of builds. I'm running Jenkins 2.32.3. Also, I fixed > Jenkins complaining about being run behind proxy, or something along those > lines. > > How do I make it build when pushing to GitHub repository? What do I check? > > Project url matches what's in the log, except for trailing slash. But when > I try to remove it, it reappears. > > Regards, > Yuri > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/7cb63fa3-e438-45e4-97ff-0e682b554a02%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: How to make Jenkins build something on pushing to GitHub?
Your job need to have a scm configuration for it to be triggered on commits. Either configure it as Multibranch Pipeline job or add a "git" or checkout step in your normal pipeline. On Tuesday, March 21, 2017 at 12:52:30 PM UTC-7, Yuri Kanivetsky wrote: > > Hi, > > I have a pipeline job. It has "GitHub project" checked in settings. > Project url is specified. And "GitHub hook trigger for GITScm polling" is > checked in Build Triggers. I can see notifications coming from GitHub in > System Log: > > Mar 21, 2017 7:23:28 PM INFO > org.jenkinsci.plugins.github.webhook.subscriber.DefaultPushGHEventSubscriber > onEvent > Received PushEvent for https://github.com/user/prj from 10.0.3.1 ⇒ > http://jenkins.rademade.com:8080/github-webhook/ > Mar 21, 2017 7:23:28 PM INFO > org.jenkinsci.plugins.github_branch_source.PushGHEventSubscriber onEvent > Received PUSH for https://github.com/user/prj from 10.0.3.1 ⇒ > http://jenkins.rademade.com:8080/github-webhook/ > > The job has hello world pipeline. Jenkins master node is running in lxc > container, if anything. And doesn't have slave nodes. But when I click > "Build Now" it sort of builds. I'm running Jenkins 2.32.3. Also, I fixed > Jenkins complaining about being run behind proxy, or something along those > lines. > > How do I make it build when pushing to GitHub repository? What do I check? > > Project url matches what's in the log, except for trailing slash. But when > I try to remove it, it reappears. > > Regards, > Yuri > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/3582be1a-1e0f-47f6-acb7-94e741e9e0c2%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
How to make Jenkins build something on pushing to GitHub?
Hi, I have a pipeline job. It has "GitHub project" checked in settings. Project url is specified. And "GitHub hook trigger for GITScm polling" is checked in Build Triggers. I can see notifications coming from GitHub in System Log: Mar 21, 2017 7:23:28 PM INFO org.jenkinsci.plugins.github.webhook.subscriber.DefaultPushGHEventSubscriber onEvent Received PushEvent for https://github.com/user/prj from 10.0.3.1 ⇒ http://jenkins.rademade.com:8080/github-webhook/ Mar 21, 2017 7:23:28 PM INFO org.jenkinsci.plugins.github_branch_source.PushGHEventSubscriber onEvent Received PUSH for https://github.com/user/prj from 10.0.3.1 ⇒ http://jenkins.rademade.com:8080/github-webhook/ The job has hello world pipeline. Jenkins master node is running in lxc container, if anything. And doesn't have slave nodes. But when I click "Build Now" it sort of builds. I'm running Jenkins 2.32.3. Also, I fixed Jenkins complaining about being run behind proxy, or something along those lines. How do I make it build when pushing to GitHub repository? What do I check? Project url matches what's in the log, except for trailing slash. But when I try to remove it, it reappears. Regards, Yuri -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/9b7856e0-c394-4c61-a4a8-600e11c8cf40%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.