Hi Craig, thanks for your response. That is not exactly what I was looking 
for. When we create a pipeline, there are some options available for Build 
Triggers. The problem is I can't find a way to set the trigger I need 
through Pipeline script like the way I set the Job Properties (e.g. This 
project is parameterized, etc). If I can do this, then I can put the 
commands in a Jenkinsfile on GitHub and let the GitHub organization scan 
control the build job creation.

On Tuesday, May 17, 2016 at 12:29:10 AM UTC-4, Craig Rodrigues wrote:
>
> Did you try doing this:
>
> https://wiki.jenkins-ci.org/display/JENKINS/GitHub+Plugin#GitHubPlugin-TriggerabuildwhenachangeispushedtoGitHub
>
>
> On Mon, May 16, 2016 at 2:54 PM, John Chandra <[email protected] <javascript:>
> > wrote:
>
>> Hi All,
>>
>> Is there any way to configure a build trigger using pipeline script in 
>> Jenkinsfile? We still want to trigger the build when a change is pushed to 
>> GitHub. Is that still possible using Jenkinsfile in Jenkins 2.0? I've been 
>> searching around but I couldn't find a way to get this done.
>>
>>

-- 
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/0054b9a3-123f-4000-9f0d-47f4508a0f4f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to