Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Inside a Pipeline you can declare a custom macro using the command macro and reuse it by calling the command macro.run.

...

What is a Pipeline Macro?

A Pipeline Macro or just Macro in short is a single Pipeline Expression which can be declared inside a pipeline and then reused at multiple places of the pipeline. It is similar to a function / method definition. It is limited to a Pipeline Expression.

If you need to implement an reuse more sophisticated logic, consider to call a sub-pipeline by using the command pipeline.run instead.

Declaring a Macro​

Here is a simple example to declare a macro in a pipeline:

...