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

          Liam Newman created issue -
          Liam Newman made changes -
          Link New: This issue is related to JENKINS-35282 [ JENKINS-35282 ]

          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.
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 173504 ] New: JNJira + In-Review [ 185160 ]
          Liam Newman made changes -
          Link New: This issue depends on JENKINS-36502 [ JENKINS-36502 ]
          Jesse Glick made changes -
          Labels New: workflow

          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.
          Daniel Spilker made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]

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

              Created:
              Updated:
              Resolved: