• Blue Ocean 1.4 - beta 2

      In Pipeline scripts, steps is bound to the DSL which has step definitions, and may be passed around as a regular object. Two use cases:

      • passing it to a loaded class which would not otherwise have Script bindings in scope
      • using it to disambiguate, in case you have defined a local function with the same name as a step

      Currently it seems this variable is not documented. It should be mentioned in cps-global-lib/README.md and/or TUTORIAL.md. Perhaps it should be registered as a GlobalVariable to make it more discoverable.

          [JENKINS-33353] Document existence of steps global variable

          Jesse Glick created issue -
          Jesse Glick made changes -
          Labels New: documentation
          Jesse Glick made changes -
          Labels Original: documentation New: documentation groovy
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 169265 ] New: JNJira + In-Review [ 183424 ]
          Andrew Bayer made changes -
          Component/s New: pipeline-general [ 21692 ]
          Andrew Bayer made changes -
          Component/s Original: workflow-plugin [ 18820 ]
          Jesse Glick made changes -
          Component/s New: workflow-cps-plugin [ 21713 ]
          Component/s Original: pipeline [ 21692 ]
          Jesse Glick made changes -
          Link New: This issue relates to JENKINS-29952 [ JENKINS-29952 ]
          James Dumay made changes -
          Sprint New: Blue Ocean 1.4 - candidates [ 326 ]
          CloudBees Inc. made changes -
          Remote Link New: This issue links to "CloudBees Internal CD-282 (Web Link)" [ 19024 ]

            jglick Jesse Glick
            jglick Jesse Glick
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: