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