You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| run | map[string -> string] | none | no | Run a custom command |
511
-
| run.command | string | none | yes | Shell command to run |
512
-
| run.output | string | "show" | no | How to post-process the output of this command when posted in the PR comment. The options are<br/>* `show` - preserve the full output<br/>* `hide` - hide output from comment (still visible in the real-time streaming output)<br/> * `strip_refreshing` - hide all output up until and including the last line containing "Refreshing...". This matches the behavior of the built-in `plan` command |
| run | map[string -> string] | none | no | Run a custom command |
515
+
| run.command | string | none | yes | Shell command to run |
516
+
| run.output | string | "show" | no | How to post-process the output of this command when posted in the PR comment. The options are<br/>* `show` - preserve the full output<br/>* `hide` - hide output from comment (still visible in the real-time streaming output)<br/> * `strip_refreshing` - hide all output up until and including the last line containing "Refreshing...". This matches the behavior of the built-in `plan` command<br/> * `custom_regex` - filters the comment output based on the regex specified on `run.regex_filter` by replacing matched patterns with the text `<redacted`. Note: this filter only applies to the comments posted by Atlantis, the plan output on the URL job is untouched <br/> * `strip_refreshing_with_custom_regex` - applies `strip_refreshing` and `custom_regex` to the output |
517
+
| run.custom_regex | string | none | no | Regex filter to be applied to output. Required when `run.output` is `custom_regex` or `strip_refreshing_with_custom_regex` |
513
518
514
519
::: tip Notes
515
-
* `run` steps in the main `workflow` are executed with the following environment variables:
520
+
* `run` steps in the main `workflow` are executed with the following environment variables:
516
521
note: these variables are not available to `pre` or `post` workflows
517
-
* `WORKSPACE` - The Terraform workspace used for this project, ex. `default`.
522
+
* `WORKSPACE` - The Terraform workspace used for this project, ex. `default`.
518
523
NOTE: if the step is executed before `init` then Atlantis won't have switched to this workspace yet.
519
524
* `ATLANTIS_TERRAFORM_VERSION` - The version of Terraform used for this project, ex. `0.11.0`.
520
525
* `DIR` - Absolute path to the current directory.
@@ -544,10 +549,10 @@ Full
544
549
* A custom command will only terminate if all output file descriptors are closed.
545
550
Therefore a custom command can only be sent to the background (e.g. for an SSH tunnel during
546
551
the terraform run) when its output is redirected to a different location. For example, Atlantis
547
-
will execute a custom script containing the following code to create a SSH tunnel correctly:
552
+
will execute a custom script containing the following code to create a SSH tunnel correctly:
returnfmt.Errorf("run step %q option must be one of %q, %q, or %q", OutputArgKey, valid.PostProcessRunOutputShow, valid.PostProcessRunOutputHide, valid.PostProcessRunOutputStripRefreshing)
0 commit comments