-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuildstage_build.tf
46 lines (39 loc) · 1.97 KB
/
buildstage_build.tf
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
41
42
43
44
45
46
## Copyright © 2021, Oracle and/or its affiliates.
## All rights reserved. The Universal Permissive License (UPL), Version 1.0 as shown at http://oss.oracle.com/licenses/upl
resource "oci_devops_build_pipeline_stage" "test_build_pipeline_stage" {
#Required
build_pipeline_id = oci_devops_build_pipeline.test_build_pipeline.id
build_pipeline_stage_predecessor_collection {
#Required
items {
#Required
id = oci_devops_build_pipeline.test_build_pipeline.id
}
}
build_pipeline_stage_type = var.build_pipeline_stage_build_pipeline_stage_type
#Optional
build_source_collection {
#Optional
items {
#Required
connection_type = var.build_pipeline_stage_build_source_collection_items_connection_type
#Optional
branch = var.build_pipeline_stage_build_source_collection_items_branch
# connection_id = oci_devops_connection.test_connection.id
name = var.build_pipeline_stage_build_source_collection_items_name
repository_id = oci_devops_repository.test_repository.id
repository_url = "https://devops.scmservice.${var.region}.oci.oraclecloud.com/namespaces/${local.ocir_namespace}/projects/${oci_devops_project.test_project.name}/repositories/${oci_devops_repository.test_repository.name}"
}
}
# build_spec_file = var.build_pipeline_stage_build_spec_file
display_name = var.build_pipeline_stage_display_name
description = var.build_pipeline_build_stage_description
image = var.build_pipeline_stage_image
stage_execution_timeout_in_seconds = var.build_pipeline_stage_stage_execution_timeout_in_seconds
wait_criteria {
#Required
wait_duration = var.build_pipeline_stage_wait_criteria_wait_duration
wait_type = var.build_pipeline_stage_wait_criteria_wait_type
}
defined_tags = { "${oci_identity_tag_namespace.ArchitectureCenterTagNamespace.name}.${oci_identity_tag.ArchitectureCenterTag.name}" = var.release }
}