>
> 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/6f121dc6-3549-4402-b189-a111b503f819%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to