Skip to content

Allow run workflow command to copy execution report upon workflow completion

Current situation

In the same way as in #102 (closed), if a workflow is executed from a GitLab pipeline, one must first retrieve the workflow id, then pass it to the opentf-ctl cp command if he wants to retrieve the execution report. It could be interesting to add an option to the run workflow command, allowing to copy the workflow execution report directly upon the workflow completion.

Desired outcome

If the opentf-ctl run workflow is executed with --report={filename}[:{destination}] option, the execution report is copied to {filename} (or {destination} if specified) upon workflow completion.

This option can be present multiple time.

It only retrieves workflow reports, not other kinds of attachments.

As for the referenced issue, it waits for completion.

Examples

opentf-ctl run workflow abc.yaml --report executionlog.txt --report executionreport.html:foobar/execreport.html --report yada_zorglub.txt
Edited by Martin Lafaix