<commit_before>#
# This terraform plan defines the resources necessary to host the Jenkins
# project's reports host.
#
# See: https://issues.jenkins-ci.org/browse/INFRA-947

resource "azurerm_resource_group" "reports" {
    name     = "${var.prefix}-reports"
    location = "${var.location}"
}

resource "azurerm_storage_account" "reports" {
    name                     = "${var.prefix}jenkinsreports"
    resource_group_name      = "${azurerm_resource_group.reports.name}"

    location                 = "${var.location}"
    account_tier             = "Standard"
    account_replication_type = "GRS"

    custom_domain {
        name = "${var.prefix == "prod" ? "reports.jenkins.io" : ""}"
    }
}

resource "azurerm_storage_container" "reports" {
    name                  = "reports"
    resource_group_name   = "${azurerm_resource_group.reports.name}"
    storage_account_name  = "${azurerm_storage_account.reports.name}"
    container_access_type = "container"
}<commit_msg>Deploy reports azure file storage<commit_after>#
# This terraform plan defines the resources necessary to host the Jenkins
# project's reports host.
#
# See: https://issues.jenkins-ci.org/browse/INFRA-947

resource "azurerm_resource_group" "reports" {
    name     = "${var.prefix}-reports"
    location = "${var.location}"
}

resource "azurerm_storage_account" "reports" {
    name                     = "${var.prefix}jenkinsreports"
    resource_group_name      = "${azurerm_resource_group.reports.name}"

    location                 = "${var.location}"
    account_tier             = "Standard"
    account_replication_type = "GRS"

    custom_domain {
        name = "${var.prefix == "prod" ? "reports.jenkins.io" : ""}"
    }
}

resource "azurerm_storage_container" "reports" {
    name                  = "reports"
    resource_group_name   = "${azurerm_resource_group.reports.name}"
    storage_account_name  = "${azurerm_storage_account.reports.name}"
    container_access_type = "container"
}

resource "azurerm_storage_share" "reports" {
    name                  = "reports"
    resource_group_name   = "${azurerm_resource_group.reports.name}"
    storage_account_name  = "${azurerm_storage_account.reports.name}"
    depends_on            = ["azurerm_resource_group.reports","azurerm_storage_account.reports"]
}

{'fraction_non_alphanumeric': 0.12267013437364542, 'fraction_numerical': 0.002600780234070221, 'mean_word_length': 3.070546737213404, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6564623', 'n_tokens_mistral': 741, 'n_tokens_neox': 682, 'n_words': 121}