Document existence of steps global variable

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • 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.

            Assignee:
            Jesse Glick
            Reporter:
            Jesse Glick
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: