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 [email protected]. 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.
