JENKINS-35282 Added the basic support for executing Job DSL as part of Pipeline.

      Now need to add a custom pipeline step, "jobDsl()" so we can stop using "step([$class: "executeJobDsl", etc).

          [JENKINS-36768] Add custom "jobDsl()" Jenkins Pipeline step

          What is wrong with the step(...) syntax?

          Daniel Spilker added a comment - What is wrong with the step(...) syntax?

          Liam Newman added a comment - - edited

          The `step(...)` syntax is akin to the Groovy XML syntax that one can use in the JobDSL when an extension method isn't defined. It works, but adding a custom step is nicer all around.

          I've already started implementing it, I just wanted to have bug for it.

          Liam Newman added a comment - - edited The `step(...)` syntax is akin to the Groovy XML syntax that one can use in the JobDSL when an extension method isn't defined. It works, but adding a custom step is nicer all around. I've already started implementing it, I just wanted to have bug for it.

          Jesse Glick added a comment -

          No do not add a new step just for this! Merely add a @Symbol to your builder descriptor and (with some plugin updates from today) you are done.

          Jesse Glick added a comment - No do not add a new step just for this! Merely add a @Symbol to your builder descriptor and (with some plugin updates from today) you are done.

          Liam Newman added a comment -

          Liam Newman added a comment - jglick You mean like what is described here: https://github.com/jenkinsci/pipeline-plugin/blob/master/DEVGUIDE.md#defining-symbols

          Will be available in 1.49.

          Daniel Spilker added a comment - Will be available in 1.49.

            daspilker Daniel Spilker
            bitwiseman Liam Newman
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: