Re: Pipeline script for Build Trigger

2017-01-29 Thread Kevin Burnett
Sebastian, here's a snippet of a declarative Jenkinsfile pipeline showing a time-based (cron) trigger: pipeline { triggers { // every 30 minutes during 9 hours each night cron('H/30 20,21,22,23,0,1,2,3,4 * * *') } agent { label 'docker' } environment { GIT_COMMITTER_NAME =

Re: Pipeline script for Build Trigger

2017-01-27 Thread Sebastian Gurlt
Hey, I want to do the same with automatic time based builds, any hint how I could implement this ? :) Greetings Sebastian Am Freitag, 12. August 2016 20:55:03 UTC+2 schrieb John Engelman: > > I was able to get the branch to enable the trigger by adding the following > to my Jenkinsfile: > >

Re: Pipeline script for Build Trigger

2016-08-12 Thread John Engelman
I was able to get the branch to enable the trigger by adding the following to my Jenkinsfile: properties([ pipelineTriggers([ [$class: "GitHubPushTrigger"] ]) ]) I then manually executed a Branch Index on the parent job and the resulting PR builds had the trigger on push

Re: Pipeline script for Build Trigger

2016-08-11 Thread Michal Medvecky
I see that the related issue was resolved, but I still don't know how to add "Build when a change is pushed to GitHub" support to my Jenkinsfile. Can anyone help me please? Michal -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To

Re: Pipeline script for Build Trigger

2016-05-18 Thread John Chandra
t;>> I think https://issues.jenkins-ci.org/browse/JENKINS-34005 is what you >>> are looking for. >>> >>> On Monday, May 16, 2016 at 4:54:13 PM UTC-5, John Chandra wrote: >>>> >>>> Hi All, >>>> >>>> Is there any way to configure a

Re: Pipeline script for Build Trigger

2016-05-17 Thread Michael Kobit
dra 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 Jenkinsfil

Re: Pipeline script for Build Trigger

2016-05-17 Thread John Chandra
at you > are looking for. > > On Monday, May 16, 2016 at 4:54:13 PM UTC-5, John Chandra 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 pushe

Re: Pipeline script for Build Trigger

2016-05-17 Thread John Chandra
wiki.jenkins-ci.org/display/JENKINS/GitHub+Plugin#GitHubPlugin-TriggerabuildwhenachangeispushedtoGitHub > > > On Mon, May 16, 2016 at 2:54 PM, John Chandra <joh...@bu.edu > > wrote: > >> Hi All, >> >> Is there any way to configure a build trigger usin

Re: Pipeline script for Build Trigger

2016-05-17 Thread Michael Kobit
I think https://issues.jenkins-ci.org/browse/JENKINS-34005 is what you are looking for. On Monday, May 16, 2016 at 4:54:13 PM UTC-5, John Chandra wrote: > > Hi All, > > Is there any way to configure a build trigger using pipeline script in > Jenkinsfile? We still want to trigger

Re: Pipeline script for Build Trigger

2016-05-16 Thread Craig Rodrigues
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 <john...@bu.edu> wrote: > Hi All, > > Is there any way to configure a build trigger using

Pipeline script for Build Trigger

2016-05-16 Thread John Chandra
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