Deprecation of DSL Extensions in favour of Dynamic DSL generation

43 views
Skip to first unread message

Oliver Gondža

unread,
Jan 20, 2021, 2:35:21 AM1/20/21
to job-dsl-plugin

Hey, I have noticed the extension points to Job DSL plugins are deprecated and considered replaced by Dynamic DSL[1]. I wanted to introduce Job DSL support into a plugin, though I have several questions on how to do this.

- What "extension" functionality is actually deprecated? All of Extending the DSL[1]?
- Are there any details on how to lay out classes/constructors/setter to play nice with Dynamic DSL generation? I am doing pretty much trial and error of code changes, running DSL test and consulting API viewer.
- How to contribute text documentation for API viewer with Dynamic DSL generation?


Thanks!
--
oliver

Matt Sheehan

unread,
Jan 22, 2021, 4:29:54 PM1/22/21
to job-dsl-plugin
I think adding support for new plugins was deprecated. Anything that doesn't already have some support should use the dynamic dsl. 

I can't remember exactly how the syntax works, but I think it has something to do with the structs plugin.

The api viewer for your jenkins instance (https://your.jenkins.installation/plugin/job-dsl/api-viewer/) should show the dynamic DSL if the plugin is installed.

--
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-plugi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/job-dsl-plugin/250bafbb-a5bc-42ae-a993-029aa17999c4n%40googlegroups.com.

Oliver Gondža

unread,
Jan 22, 2021, 4:49:02 PM1/22/21
to job-dsl...@googlegroups.com
Yeah, that is how I approached that for now. I was hoping there is more
efficient way to go.

On 22/01/2021 22.29, Matt Sheehan wrote:
> I think adding support for new plugins was deprecated. Anything that
> doesn't already have some support should use the dynamic dsl.
>
> I can't remember exactly how the syntax works, but I think it has
> something to do with the structs plugin.
>
> The api viewer for your jenkins instance
> (https://your.jenkins.installation/plugin/job-dsl/api-viewer/
> <https://your.jenkins.installation/plugin/job-dsl/api-viewer/>) should
> <mailto:job-dsl-plugi...@googlegroups.com>.
> <https://groups.google.com/d/msgid/job-dsl-plugin/250bafbb-a5bc-42ae-a993-029aa17999c4n%40googlegroups.com?utm_medium=email&utm_source=footer>.
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "job-dsl-plugin" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/job-dsl-plugin/SN0uSUPrdv8/unsubscribe
> <https://groups.google.com/d/topic/job-dsl-plugin/SN0uSUPrdv8/unsubscribe>.
> To unsubscribe from this group and all its topics, send an email to
> job-dsl-plugi...@googlegroups.com
> <mailto:job-dsl-plugi...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/job-dsl-plugin/CAKZH%3DdY%2B-%2BPd%2BCydujiwNRVcb1Zmv-UJ-AFsM4EhzMka-peHWQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/job-dsl-plugin/CAKZH%3DdY%2B-%2BPd%2BCydujiwNRVcb1Zmv-UJ-AFsM4EhzMka-peHWQ%40mail.gmail.com?utm_medium=email&utm_source=footer>.


--
oliver
Reply all
Reply to author
Forward
0 new messages