Disable automatic triggering

47 views
Skip to first unread message

Esdras Neto

unread,
Oct 11, 2017, 11:01:41 AM10/11/17
to job-dsl...@googlegroups.com
Folks,

I have a DSL seed job which create jobs automatically using the files pushed to a git repo, awesome.

However, everytime this DSL seed job runs it kicks the builds created by it automatically, in fact, even if concurrent builds are set to disable it will kick a new build. 

How can I cancel this behaviour and don't trigger a new build for every seed run? 


Thanks!

--

Daniel Spilker

unread,
Oct 11, 2017, 11:55:12 AM10/11/17
to job-dsl...@googlegroups.com
Hi,

post a minimal DSL script that reproduces the problem.

Daniel


--
You received this message because you are subscribed to the Google Groups "job-dsl-plugin" group.
To unsubscribe from this group and stop receiving emails from it, send an email to job-dsl-plugin+unsubscribe@googlegroups.com.
To post to this group, send email to job-dsl-plugin@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/job-dsl-plugin/CAF2iieanReVsBnV98PGhVpAt7y867HsD6qRTTQFUe-avPjvY8w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Esdras Neto

unread,
Oct 11, 2017, 12:21:31 PM10/11/17
to job-dsl...@googlegroups.com
Sure, 

The job-dsl plugin is used here to create a pipeline job:

pipelineJob('Main-build') {
    definition {
        triggers {
            scm('H/15 * * * *')
        }
        cps {
            script(readFileFromWorkspace('jenkins/jobs/pipelines/main_build.jenkinsfile'))
            sandbox()
        }
    }
}

2017-10-11 16:54 GMT+01:00 Daniel Spilker <ma...@daniel-spilker.com>:
Hi,

post a minimal DSL script that reproduces the problem.

Daniel

On Wed, Oct 11, 2017 at 5:01 PM, Esdras Neto <esd...@gmail.com> wrote:
Folks,

I have a DSL seed job which create jobs automatically using the files pushed to a git repo, awesome.

However, everytime this DSL seed job runs it kicks the builds created by it automatically, in fact, even if concurrent builds are set to disable it will kick a new build. 

How can I cancel this behaviour and don't trigger a new build for every seed run? 


Thanks!

--

--
You received this message because you are subscribed to the Google Groups "job-dsl-plugin" group.
To unsubscribe from this group and stop receiving emails from it, send an email to job-dsl-plugin+unsubscribe@googlegroups.com.
To post to this group, send email to job-dsl...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "job-dsl-plugin" group.
To unsubscribe from this group and stop receiving emails from it, send an email to job-dsl-plugin+unsubscribe@googlegroups.com.
To post to this group, send email to job-dsl-plugin@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Esdras Neto

unread,
Oct 11, 2017, 1:23:23 PM10/11/17
to job-dsl...@googlegroups.com
I just added the line below to the groovy file:
concurrentBuild(allowConcurrentBuild = false)

The line was already in the .jenkinsfile for the pipeline, seems to be working fine now. 

Thanks a lot, let me know if you have a better way to manage this.

Reply all
Reply to author
Forward
0 new messages