The gitlab_integration_pipelines_email
resource allows to manage the lifecycle of a project integration with Pipeline Emails Service.
Upstream API: GitLab REST API docs
resource "gitlab_project" "awesome_project" {
name = "awesome_project"
description = "My awesome project."
visibility_level = "public"
}
resource "gitlab_integration_pipelines_email" "email" {
project = gitlab_project.awesome_project.id
recipients = ["gitlab@user.create"]
notify_only_broken_pipelines = true
branches_to_be_notified = "all"
}
project
(String) ID of the project you want to activate integration on.recipients
(Set of String) ) email addresses where notifications are sent.branches_to_be_notified
(String) Branches to send notifications for. Valid options are all
, default
, protected
, and default_and_protected
. Default is default
notify_only_broken_pipelines
(Boolean) Notify only broken pipelines. Default is true.id
(String) The ID of this resource.Import is supported using the following syntax:
# You can import a gitlab_integration_pipelines_email state using the project ID, e.g.
terraform import gitlab_integration_pipelines_email.email 1