Add prod builders for plugins stable and master.

Bug: 77175
diff --git a/config/generated/flutter/luci/cr-buildbucket.cfg b/config/generated/flutter/luci/cr-buildbucket.cfg
index 74183e6..49f95ac 100644
--- a/config/generated/flutter/luci/cr-buildbucket.cfg
+++ b/config/generated/flutter/luci/cr-buildbucket.cfg
@@ -43353,6 +43353,34 @@
       task_template_canary_percentage {}
     }
     builders {
+      name: "Windows Plugins"
+      swarming_host: "chromium-swarm.appspot.com"
+      dimensions: "os:Windows-Server"
+      dimensions: "pool:luci.flutter.prod"
+      recipe {
+        name: "plugins/plugins"
+        cipd_package: "flutter/recipe_bundles/flutter.googlesource.com/recipes"
+        cipd_version: "refs/heads/master"
+        properties_j: "$fuchsia/goma:{\"server\":\"rbe-prod1.endpoints.fuchsia-infra-goma-prod.cloud.goog\"}"
+        properties_j: "$kitchen:{\"emulate_gce\":true}"
+        properties_j: "$recipe_engine/isolated:{\"server\":\"https://isolateserver.appspot.com\"}"
+        properties_j: "$recipe_engine/swarming:{\"server\":\"https://chromium-swarm.appspot.com\"}"
+        properties_j: "clobber:false"
+        properties_j: "gold_tryjob:false"
+        properties_j: "goma_jobs:\"200\""
+        properties_j: "mastername:\"client.flutter\""
+        properties_j: "upload_packages:true"
+      }
+      execution_timeout_secs: 3600
+      caches {
+        name: "pub_cache"
+        path: ".pub-cache"
+      }
+      build_numbers: YES
+      service_account: "flutter-prod-builder@chops-service-accounts.iam.gserviceaccount.com"
+      task_template_canary_percentage {}
+    }
+    builders {
       name: "Windows SDK Drone"
       swarming_host: "chromium-swarm.appspot.com"
       dimensions: "os:Windows-Server"
@@ -45877,6 +45905,34 @@
       task_template_canary_percentage {}
     }
     builders {
+      name: "Windows stable Plugins"
+      swarming_host: "chromium-swarm.appspot.com"
+      dimensions: "os:Windows-Server"
+      dimensions: "pool:luci.flutter.prod"
+      recipe {
+        name: "plugins/plugins"
+        cipd_package: "flutter/recipe_bundles/flutter.googlesource.com/recipes"
+        cipd_version: "refs/heads/master"
+        properties_j: "$fuchsia/goma:{\"server\":\"rbe-prod1.endpoints.fuchsia-infra-goma-prod.cloud.goog\"}"
+        properties_j: "$kitchen:{\"emulate_gce\":true}"
+        properties_j: "$recipe_engine/isolated:{\"server\":\"https://isolateserver.appspot.com\"}"
+        properties_j: "$recipe_engine/swarming:{\"server\":\"https://chromium-swarm.appspot.com\"}"
+        properties_j: "clobber:false"
+        properties_j: "gold_tryjob:false"
+        properties_j: "goma_jobs:\"200\""
+        properties_j: "mastername:\"client.flutter\""
+        properties_j: "upload_packages:true"
+      }
+      execution_timeout_secs: 3600
+      caches {
+        name: "pub_cache"
+        path: ".pub-cache"
+      }
+      build_numbers: YES
+      service_account: "flutter-prod-builder@chops-service-accounts.iam.gserviceaccount.com"
+      task_template_canary_percentage {}
+    }
+    builders {
       name: "Windows stable SDK Drone"
       swarming_host: "chromium-swarm.appspot.com"
       dimensions: "os:Windows-Server"
diff --git a/config/generated/flutter/luci/luci-milo.cfg b/config/generated/flutter/luci/luci-milo.cfg
index 7aa35d5..e80e4f2 100644
--- a/config/generated/flutter/luci/luci-milo.cfg
+++ b/config/generated/flutter/luci/luci-milo.cfg
@@ -5211,6 +5211,32 @@
   favicon_url: "https://storage.googleapis.com/flutter_infra/favicon.ico"
 }
 consoles {
+  id: "stable_plugins"
+  name: "stable_plugins"
+  repo_url: "https://chromium.googlesource.com/external/github.com/flutter/plugins"
+  refs: "regexp:refs/heads/flutter-1\\.26-candidate\\.17"
+  manifest_name: "REVISION"
+  builders {
+    name: "buildbucket/luci.flutter.prod/Windows stable Plugins"
+    category: "Windows"
+    short_name: "plugins"
+  }
+  favicon_url: "https://storage.googleapis.com/flutter_infra/favicon.ico"
+}
+consoles {
+  id: "plugins"
+  name: "plugins"
+  repo_url: "https://chromium.googlesource.com/external/github.com/flutter/plugins"
+  refs: "regexp:refs/heads/master"
+  manifest_name: "REVISION"
+  builders {
+    name: "buildbucket/luci.flutter.prod/Windows Plugins"
+    category: "Windows"
+    short_name: "plugins"
+  }
+  favicon_url: "https://storage.googleapis.com/flutter_infra/favicon.ico"
+}
+consoles {
   id: "plugins-try"
   name: "Plugins try builders"
   builders {
diff --git a/config/generated/flutter/luci/luci-notify.cfg b/config/generated/flutter/luci/luci-notify.cfg
index c2f3441..470125d 100644
--- a/config/generated/flutter/luci/luci-notify.cfg
+++ b/config/generated/flutter/luci/luci-notify.cfg
@@ -9361,6 +9361,17 @@
   }
   builders {
     bucket: "prod"
+    name: "Windows Plugins"
+    repository: "https://chromium.googlesource.com/external/github.com/flutter/plugins"
+  }
+}
+notifiers {
+  notifications {
+    on_new_failure: true
+    notify_blamelist {}
+  }
+  builders {
+    bucket: "prod"
     name: "Windows Web Engine"
     repository: "https://chromium.googlesource.com/external/github.com/flutter/engine"
   }
@@ -9933,6 +9944,17 @@
   }
   builders {
     bucket: "prod"
+    name: "Windows stable Plugins"
+    repository: "https://chromium.googlesource.com/external/github.com/flutter/plugins"
+  }
+}
+notifiers {
+  notifications {
+    on_new_failure: true
+    notify_blamelist {}
+  }
+  builders {
+    bucket: "prod"
     name: "Windows stable Web Engine"
     repository: "https://chromium.googlesource.com/external/github.com/flutter/engine"
   }
diff --git a/config/generated/flutter/luci/luci-scheduler.cfg b/config/generated/flutter/luci/luci-scheduler.cfg
index b8eb470..27ca5a0 100644
--- a/config/generated/flutter/luci/luci-scheduler.cfg
+++ b/config/generated/flutter/luci/luci-scheduler.cfg
@@ -11843,6 +11843,20 @@
   }
 }
 job {
+  id: "Windows Plugins"
+  acl_sets: "prod"
+  triggering_policy {
+    kind: GREEDY_BATCHING
+    max_concurrent_invocations: 3
+    max_batch_size: 3
+  }
+  buildbucket {
+    server: "cr-buildbucket.appspot.com"
+    bucket: "luci.flutter.prod"
+    builder: "Windows Plugins"
+  }
+}
+job {
   id: "Windows Web Engine"
   acl_sets: "prod"
   triggering_policy {
@@ -12563,6 +12577,20 @@
   }
 }
 job {
+  id: "Windows stable Plugins"
+  acl_sets: "prod"
+  triggering_policy {
+    kind: GREEDY_BATCHING
+    max_concurrent_invocations: 3
+    max_batch_size: 1
+  }
+  buildbucket {
+    server: "cr-buildbucket.appspot.com"
+    bucket: "luci.flutter.prod"
+    builder: "Windows stable Plugins"
+  }
+}
+job {
   id: "Windows stable Web Engine"
   acl_sets: "prod"
   triggering_policy {
@@ -13855,6 +13883,15 @@
   }
 }
 trigger {
+  id: "master-gitiles-trigger-plugins"
+  acl_sets: "prod"
+  triggers: "Windows Plugins"
+  gitiles {
+    repo: "https://chromium.googlesource.com/external/github.com/flutter/plugins"
+    refs: "regexp:refs/heads/master"
+  }
+}
+trigger {
   id: "recipes-gitiles-trigger"
   acl_sets: "prod"
   triggers: "recipe-deps-roller"
@@ -14115,6 +14152,15 @@
     refs: "regexp:refs/heads/stable"
   }
 }
+trigger {
+  id: "stable-gitiles-trigger-plugins"
+  acl_sets: "prod"
+  triggers: "Windows stable Plugins"
+  gitiles {
+    repo: "https://chromium.googlesource.com/external/github.com/flutter/plugins"
+    refs: "regexp:refs/heads/flutter-1\\.26-candidate\\.17"
+  }
+}
 acl_sets {
   name: "prod"
   acls {
diff --git a/config/main.star b/config/main.star
index aee4338..166b337 100755
--- a/config/main.star
+++ b/config/main.star
@@ -168,5 +168,5 @@
 
 recipes_config.setup()
 
-plugins_config.setup()
+plugins_config.setup(release_branches)
 ######################### Console Definitions #################################
diff --git a/config/plugins_config.star b/config/plugins_config.star
index 7ef0639..756747b 100644
--- a/config/plugins_config.star
+++ b/config/plugins_config.star
@@ -9,7 +9,7 @@
 load("//lib/common.star", "common")
 load("//lib/repos.star", "repos")
 
-def _setup():
+def _setup(branches):
     """Set default configurations for builders, and setup recipes."""
     platform_args = {
         "windows": {
@@ -21,6 +21,22 @@
         },
     }
     plugins_define_recipes()
+
+    plugins_prod_config(
+        platform_args,
+        "stable",
+        branches.stable.version,
+        branches.stable.testing_ref,
+        branches.stable.release_ref,
+    )
+    plugins_prod_config(
+        platform_args,
+        "master",
+        branches.master.version,
+        branches.master.testing_ref,
+        branches.master.release_ref,
+    )
+
     plugins_try_config(platform_args)
     plugins_product_tagged_config_setup(platform_args)
 
@@ -108,4 +124,63 @@
         **platform_args["linux"]
     )
 
+def plugins_prod_config(platform_args, branch, version, testing_ref, release_ref):
+    """Prod configurations for the plugins repository.
+
+    Args:
+        platform_args (dict): The platform arguments passed to luci builders.
+            For example:
+            {
+                "windows": {
+                    "caches": [swarming.cache(name = "pub_cache", path = ".pub-cache")],
+                }
+            }
+      branch(str): The branch name we are creating configurations for.
+      version(str): One of dev|beta|stable.
+      testing_ref(str): The git ref we are creating configurations for.
+      release_ref(str): The git ref used for releases.
+    """
+
+    recipe_name = "plugins/plugins"
+
+    # Defines console views for prod builders
+    console_view_name = ("plugins" if branch == "master" else "%s_plugins" % branch)
+    luci.console_view(
+        name = console_view_name,
+        repo = repos.PLUGINS,
+        refs = [testing_ref],
+    )
+
+    # Defines prod schedulers
+    trigger_name = branch + "-gitiles-trigger-plugins"
+    luci.gitiles_poller(
+        name = trigger_name,
+        bucket = "prod",
+        repo = repos.PLUGINS,
+        refs = [testing_ref],
+    )
+
+    # Defines triggering policy
+    if branch == "master":
+        triggering_policy = scheduler.greedy_batching(
+            max_batch_size = 3,
+            max_concurrent_invocations = 3,
+        )
+    else:
+        triggering_policy = scheduler.greedy_batching(
+            max_batch_size = 1,
+            max_concurrent_invocations = 3,
+        )
+
+    # Defines plugins prod builders
+    # Windows platform
+    common.windows_prod_builder(
+        name = "Windows%s Plugins|plugins" % ("" if branch == "master" else " " + branch),
+        recipe = recipe_name,
+        console_view_name = console_view_name,
+        triggered_by = [trigger_name],
+        triggering_policy = triggering_policy,
+        **platform_args["windows"]
+    )
+
 plugins_config = struct(setup = _setup)