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
It's unclear if this is possible or not, but the code/docs seems to indicate I should be able to do it. I'm generating code in terraform and yaml encoding it to pass to terraform.
resource "codefresh_pipeline" "schedule_all" {
for_each = toset(["syndio/syndio", "syndio/ce"])
name = "${codefresh_project.syndio_codefresh_project.name}/Schedule All (${each.key}) Pipelines"
original_yaml_string = yamlencode({
version = "1.0"
stages = ["deploy"]
steps = {
schedule_all_pipelines = {
type = "parallel"
title = "Schedule All Pipelines"
steps = { for p in local.pipelines : lower(replace("schedule_${p.name}", " ", "_")) => {
title = "Schedule ${p.name}"
stage = "deploy"
type = "codefresh-run"
arguments = {
PIPELINE_ID = "${codefresh_project.syndio_codefresh_project.name}/${p.name}"
DETACH = true
BRANCH = "$${{CF_BRANCH}}"
SHA = "$${{CF_REVISION}}"
TRIGGER_ID = each.key
}
} if p.repo == each.key }
}
}
})
spec {
concurrency = 1
pack_id = local.machine_types["small"]
trigger {
name = each.key
description = "Manual Branch Trigger"
type = "git"
provider = "github"
repo = each.key
disabled = true
context = "syndio"
branch_regex = "/.*/gi"
comment_regex = "/.*/gi"
events = [
"push.heads"
]
}
}
}
this generates an API request which faills w/ the following error
module.syndio_codefresh.codefresh_pipeline.schedule_all["syndio/syndio"]: Creating...
module.syndio_codefresh.codefresh_pipeline.schedule_all["syndio/ce"]: Creating...
Error: 500 Internal Server Error, {"status":500,"code":"1001","name":"INTERNAL_SERVER_ERROR","message":"500 - {\"message\":\"Error: Can't get project; caused by Error: Can't get project\"}","context":{}}
Error: 500 Internal Server Error, {"status":500,"code":"1001","name":"INTERNAL_SERVER_ERROR","message":"500 - {\"message\":\"Error: Can't get project; caused by Error: Can't get project\"}","context":{}}
one of the api request bodies sent to codefresh is
This looks incorrect when compared to working requests from the codefresh cli. Since giving a spec directly (not repo sourced) doesn't seem to be exposed in any way other than giving the original_yaml_string and letting the provider handle it.
The text was updated successfully, but these errors were encountered:
It's unclear if this is possible or not, but the code/docs seems to indicate I should be able to do it. I'm generating code in terraform and yaml encoding it to pass to terraform.
this generates an API request which faills w/ the following error
one of the api request bodies sent to codefresh is
This looks incorrect when compared to working requests from the codefresh cli. Since giving a spec directly (not repo sourced) doesn't seem to be exposed in any way other than giving the
original_yaml_string
and letting the provider handle it.The text was updated successfully, but these errors were encountered: