[JIRA] (JENKINS-53962) Job DSL Support without Dynamic DSL

2 views
Skip to first unread message

christoph.2.schulz@atos.net (JIRA)

unread,
Oct 9, 2018, 12:52:02 PM10/9/18
to jenkinsc...@googlegroups.com
Christoph Schulz created an issue
 
Jenkins / New Feature JENKINS-53962
Job DSL Support without Dynamic DSL
Issue Type: New Feature New Feature
Assignee: Oleg Nenashev
Components: build-name-setter-plugin
Created: 2018-10-09 16:51
Labels: job-dsl
Priority: Minor Minor
Reporter: Christoph Schulz

build-name-setter currently only works in Job DSL due to Dynamic DSL which does not work, for example with the Job DSL Standalone generator.

It would be nice if the plugin would support Job DSL officially.

Thank you.

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

o.v.nenashev@gmail.com (JIRA)

unread,
Oct 9, 2018, 9:07:04 PM10/9/18
to jenkinsc...@googlegroups.com
Oleg Nenashev assigned an issue to Unassigned
Change By: Oleg Nenashev
Assignee: Oleg Nenashev

o.v.nenashev@gmail.com (JIRA)

unread,
Oct 9, 2018, 9:08:01 PM10/9/18
to jenkinsc...@googlegroups.com
Oleg Nenashev commented on New Feature JENKINS-53962
 
Re: Job DSL Support without Dynamic DSL

I will be happy to review pull requests. The plugin is up for adoption in general, so any contributions are welcome.

mail@daniel-spilker.com (JIRA)

unread,
Jan 4, 2019, 4:47:03 PM1/4/19
to jenkinsc...@googlegroups.com
Daniel Spilker closed an issue as Fixed
 

It is already supported, see https://jenkinsci.github.io/job-dsl-plugin/#path/job-wrappers-buildName

Change By: Daniel Spilker
Status: Open Closed
Assignee: Daniel Spilker
Resolution: Fixed

christoph.2.schulz@atos.net (JIRA)

unread,
Feb 12, 2019, 4:16:02 AM2/12/19
to jenkinsc...@googlegroups.com
Christoph Schulz reopened an issue
Change By: Christoph Schulz
Resolution: Fixed
Status: Closed Reopened

christoph.2.schulz@atos.net (JIRA)

unread,
Feb 12, 2019, 4:16:02 AM2/12/19
to jenkinsc...@googlegroups.com
Christoph Schulz commented on New Feature JENKINS-53962
 
Re: Job DSL Support without Dynamic DSL

I am talking about buildNameUpdater step here.

christoph.2.schulz@atos.net (JIRA)

unread,
Feb 12, 2019, 4:17:02 AM2/12/19
to jenkinsc...@googlegroups.com
Christoph Schulz edited a comment on New Feature JENKINS-53962
I am talking about the {{buildNameUpdater}} step here.

christoph.2.schulz@atos.net (JIRA)

unread,
Feb 12, 2019, 4:17:03 AM2/12/19
to jenkinsc...@googlegroups.com
Christoph Schulz updated an issue
 
Change By: Christoph Schulz
Attachment: screenshot-1.png

christoph.2.schulz@atos.net (JIRA)

unread,
Feb 12, 2019, 4:18:02 AM2/12/19
to jenkinsc...@googlegroups.com
Christoph Schulz commented on New Feature JENKINS-53962
 
Re: Job DSL Support without Dynamic DSL

Screenshot from the API viewer from our Jenkins.

christoph.2.schulz@atos.net (JIRA)

unread,
Feb 12, 2019, 4:19:02 AM2/12/19
to jenkinsc...@googlegroups.com
Christoph Schulz updated an issue
Change By: Christoph Schulz
The {{ buildNameUpdater}} step of the {{ build-name-setter}} plugin currently only works in Job DSL due to Dynamic DSL which does not work, for example with the Job DSL Standalone generator.

It would be nice if the plugin would
be support in Job DSL officially.

Thank you.

mail@daniel-spilker.com (JIRA)

unread,
Mar 22, 2019, 11:48:03 AM3/22/19
to jenkinsc...@googlegroups.com
Daniel Spilker updated New Feature JENKINS-53962
 

The built-in DSL is in Maintenance Mode. If a feature is available in Dynamic DSL, it will not be added to the built-in DSL. When not running Job DSL in Jenkins, use a Configure Block to add any configuration that is missing in the built-in DSL.

Dynamic DSL example:

job('example') {
    steps {
        buildNameUpdater {
            fromFile(true)
            buildName('name.txt')
            fromMacro(false)
            macroTemplate('')
            macroFirst(false)
        }
    }
}

Configure block example:

job('example') {
    configure {
        it / 'builders' / 'org.jenkinsci.plugins.buildnameupdater.BuildNameUpdater' {
            fromFile(true)
            buildName('name.txt')
            fromMacro(false)
            macroTemplate('')
            macroFirst(false)
        }
    }
}
Change By: Daniel Spilker
Status: Reopened Fixed but Unreleased
Resolution: Won't Fix

mail@daniel-spilker.com (JIRA)

unread,
Mar 11, 2020, 9:24:04 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