Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-37011

Provide a way to write full-fledged Steps in CPS-transformed Groovy

    • Icon: Improvement Improvement
    • Resolution: Won't Do
    • Icon: Critical Critical
    • workflow-cps-plugin
    • None

      A number of things are much easier to write in CPS-transformed Groovy than in Java, but we'd still like to be able to expose that code as an actual Step, not just as a GlobalVariable, so that we can eventually get Snippet Generator support, introspection, etc. So let's have a way to do that. =)

          [JENKINS-37011] Provide a way to write full-fledged Steps in CPS-transformed Groovy

          Andrew Bayer created issue -
          Kohsuke Kawaguchi made changes -
          Remote Link New: This issue links to "workflow-step-api-plugin #7 (Web Link)" [ 14671 ]

          master PR that in turn depends on other pending PRs.

          Kohsuke Kawaguchi added a comment - master PR that in turn depends on other pending PRs.
          Kohsuke Kawaguchi made changes -
          Remote Link New: This issue links to "workflow-cps-plugin PR #34 (Web Link)" [ 14672 ]
          Jesse Glick made changes -
          Epic Link New: JENKINS-35394 [ 171187 ]

          Jesse Glick added a comment -

          There seems to be overlap with JENKINS-32731. One of the problems with docker-workflow is that there is no Snippet Generator support beyond a docker global variable beneath which we can put a blob of HTML. Does this change help with that at all, or did we screw up by putting this functionality under the namespace of a global variable rather than doing it all as top-level functions?

          Jesse Glick added a comment - There seems to be overlap with JENKINS-32731 . One of the problems with docker-workflow is that there is no Snippet Generator support beyond a docker global variable beneath which we can put a blob of HTML. Does this change help with that at all, or did we screw up by putting this functionality under the namespace of a global variable rather than doing it all as top-level functions?
          Jesse Glick made changes -
          Link New: This issue relates to JENKINS-32731 [ JENKINS-32731 ]
          Jesse Glick made changes -
          Link New: This issue relates to JENKINS-34650 [ JENKINS-34650 ]
          Jesse Glick made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Jesse Glick made changes -
          Status Original: In Progress [ 3 ] New: In Review [ 10005 ]

            kohsuke Kohsuke Kawaguchi
            abayer Andrew Bayer
            Votes:
            6 Vote for this issue
            Watchers:
            17 Start watching this issue

              Created:
              Updated:
              Resolved: