Github organization plugin

22 views
Skip to first unread message

Michal Medvecky

unread,
Sep 7, 2016, 9:31:45 AM9/7/16
to jenkins...@googlegroups.com
Hello,

I've successfully deployed the GH organization plugin. I commited Jenkinsfile to several branches in various repos. When I run the rescan job, it detects everything correctly and creates jobs.

I have a definition in Jenkinsfile that would employ "Build when a change is pushed to GitHub":

properties([
    pipelineTriggers([
      [$class: "GitHubPushTrigger"]
    ])
  ])

The problem is, that when I view job configuration for some branch configured with this, the checkbox is checked, but the job is not triggered when a change is pushed.

There is an organization webhook set up in Github settings, that sends all events to my Jenkins, hooks are correctly sent and received in Jenkins (I can see this in jenkins.log).

When I re-run the job for organization scan, all changes are detected and built correctly.

Am I missing something? I really need not to re-run the organization scan periodically when new commit is pushed. 

The same question stands for new branch detection - is it really necessary to re-run the scan or may new branch be detected using a webhook?

Thank you

michal
Reply all
Reply to author
Forward
0 new messages