in helpers/foundation-deployer/stages/apply.go [522:538]
func planStage(t testing.TB, conf utils.GitRepo, project, region, repo string) error {
err := conf.CommitFiles(fmt.Sprintf("Initialize %s repo", repo))
if err != nil {
return err
}
err = conf.PushBranch("plan", "origin")
if err != nil {
return err
}
commitSha, err := conf.GetCommitSha()
if err != nil {
return err
}
return gcp.NewGCP().WaitBuildSuccess(t, project, region, repo, commitSha, fmt.Sprintf("Terraform %s plan build Failed.", repo), MaxBuildRetries)
}