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 =
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:
>
>
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
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
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
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
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
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
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
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
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
11 matches
Mail list logo