Documentation
¶
Index ¶
Constants ¶
View Source
const ORG_NAME = "foo-corp"
View Source
const RUN_MESSAGE_PREFIX = "GitLab CI Scheduled"
View Source
const RunInfo = "%s:\n ID: %s Status: %-12s Source: %-20s Commit Message: %s URL: https://app.terraform.io/app/zapier/workspaces/%s/runs/%s \n"
Variables ¶
This section is empty.
Functions ¶
func LockUnlockWorkspace ¶
func MonitorRunStatus ¶
func MonitorRunStatus()
MonitorRunStatus is the body of the `tfc status` CI job. It waits for TFBuddy to publish at least one commit status for the pipeline's commit and fails if none appears within the configured wait. No status means TFBuddy never saw the commit, usually because the GitLab webhook for the push was not delivered, and without this check the merge request pipeline would be green with no Terraform plan behind it.
Whether those runs pass or fail is not this job's concern: TFBuddy publishes the outcome onto the same pipeline (a failed plan fails it, a pending apply keeps it running), so the pipeline already carries that signal.
func StartScheduledRun ¶
func StartScheduledRun(token, workspace string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.