register

The task keyword that saves a task's result in a named variable so later tasks can read it.

In more detail

For a command task the saved result includes stdout, the output text, and rc, the return code, so a later debug task can print id_result.stdout. Conditions often test registered results, for example to run a step only when an earlier one succeeded.

Example

register: id_result

Related terms

Taught in

References

Certification courses