[JIRA] (JENKINS-53359) job-dsl has deprecated concurrentBuild() on pipeline jobs

9 views
Skip to first unread message

josh@hoblitt.com (JIRA)

unread,
Aug 30, 2018, 6:27:03 PM8/30/18
to jenkinsc...@googlegroups.com
Joshua Hoblitt created an issue
 
Jenkins / Bug JENKINS-53359
job-dsl has deprecated concurrentBuild() on pipeline jobs
Issue Type: Bug Bug
Assignee: Daniel Spilker
Components: job-dsl-plugin
Created: 2018-08-30 22:26
Priority: Major Major
Reporter: Joshua Hoblitt

Per https://github.com/jenkinsci/job-dsl-plugin/wiki/Migration#migrating-to-170, and warnings in the console on seed jobs, concurrentBuild() is deprecated for pipeline jobs. Is this is error? concurrent builds can certainly be enabled/disabled on pipeline jobs.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

klaus@schniedergers.com (JIRA)

unread,
Sep 10, 2018, 5:24:01 PM9/10/18
to jenkinsc...@googlegroups.com
Klaus Schniedergers commented on Bug JENKINS-53359
 
Re: job-dsl has deprecated concurrentBuild() on pipeline jobs

When looking into the config.xml, it seems that it's still `<concurrentBuild>false</concurrentBuild>` - so what should the replacement be for the supposedly-deprecated `concurrentBuild(false)` in pipeline jobs?

klaus@schniedergers.com (JIRA)

unread,
Sep 10, 2018, 5:34:02 PM9/10/18
to jenkinsc...@googlegroups.com

Workaround:

pipelineJob('jobname') {
    configure {
        (it / 'concurrentBuild').setValue('false')
    }

mooncrosser@gmail.com (JIRA)

unread,
Nov 5, 2018, 4:55:05 AM11/5/18
to jenkinsc...@googlegroups.com

I believe this is the new correct way to do it:

pipelineJob("name") {
    properties {
        disableConcurrentBuilds()
    }
    ...

klaus@schniedergers.com (JIRA)

unread,
Nov 5, 2018, 1:49:01 PM11/5/18
to jenkinsc...@googlegroups.com

mail@daniel-spilker.com (JIRA)

unread,
Mar 22, 2019, 11:52:05 AM3/22/19
to jenkinsc...@googlegroups.com
Change By: Daniel Spilker
Status: Open Fixed but Unreleased
Resolution: Fixed
Released As: Job DSL 1.71

mail@daniel-spilker.com (JIRA)

unread,
Mar 11, 2020, 9:31:05 AM3/11/20
to jenkinsc...@googlegroups.com
Change By: Daniel Spilker
Status: Fixed but Unreleased Closed
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages