Disable automatic triggering

瀏覽次數:47 次
跳到第一則未讀訊息

Esdras Neto

未讀,
2017年10月11日 上午11:01:412017/10/11
收件者: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

未讀,
2017年10月11日 上午11:55:122017/10/11
收件者: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

未讀,
2017年10月11日 中午12:21:312017/10/11
收件者: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

未讀,
2017年10月11日 下午1:23:232017/10/11
收件者: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.

回覆所有人
回覆作者
轉寄
0 則新訊息