-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.tf
More file actions
40 lines (38 loc) · 1.88 KB
/
main.tf
File metadata and controls
40 lines (38 loc) · 1.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
resource "buddy_pipeline" "test" {
count = var.pipeline ? 1 : 0
domain = var.domain
project_name = data.buddy_project.by_display_name.display_name
name = var.pipeline_name
on = var.pipeline_react
refs = var.pipeline_ref
always_from_scratch = var.pipeline_always_from_scratch
auto_clear_cache = var.pipeline_auto_clear_cache
cron = var.pipeline_start_date != null && var.pipeline_delay != null ? null : var.pipeline_cron
delay = var.pipeline_start_date != null ? null : var.pipeline_cron
do_not_create_commit_status = var.pipeline_commit_status
execution_message_template = var.pipeline_execution_msg_template
fail_on_prepare_env_warning = var.pipeline_env_warning_fail
fetch_all_refs = var.pipeline_fetch_all_refs
ignore_fail_on_project_status = var.pipeline_ignore_fail_status
no_skip_to_most_recent = var.pipeline_no_skip_most_recent
paused = var.pipeline_react == "SCHEDULE" ? var.pipeline_paused : null
priority = var.pipeline_priority
start_date = var.pipeline_react == "SCHEDULE" && var.cron == null ? var.pipeline_start_date : null
target_site_url = var.pipeline_target_url
worker = var.pipeline_worker
trigger_condition {
condition = var.trig_condition
hours = var.trig_set_hours
days = var.trig_set_days
zone_id = var.trig_zone_id
variable_key = var.trig_var_key
variable_value = var.trig_var_value
paths = [var.trig_path]
project_name = var.trig_project_name
pipeline_name = var.trig_pipeline_name
}
event {
refs = var.event_refs
type = var.event_type
}
}