Switch tryjob builder to be a Tricium verifier.

We will want the tryjob builder to be able to post robot comments
back to the CL in Gerrit (in order to link to the staged site for
previews), so we need the builder to be a Tricium verifier.

This CL switches the builder over.

Bug: 1260464
Change-Id: I05906e309f132f17bc81db145e04313c1939d240
Reviewed-on: https://chromium-review.googlesource.com/c/experimental/website/+/3256321
Reviewed-by: Yiwei Zhang <yiwzhang@google.com>
Commit-Queue: Dirk Pranke <dpranke@google.com>
diff --git a/infra/config/generated/commit-queue.cfg b/infra/config/generated/commit-queue.cfg
index cb215a4..2d5be6e 100644
--- a/infra/config/generated/commit-queue.cfg
+++ b/infra/config/generated/commit-queue.cfg
@@ -27,6 +27,7 @@
     tryjob {
       builders {
         name: "chromium-website/try/chromium-website-try-builder"
+        mode_allowlist: "ANALYZER_RUN"
       }
       retry_config {
         single_quota: 1
diff --git a/infra/config/generated/project.cfg b/infra/config/generated/project.cfg
index 4fb318e..f68c382 100644
--- a/infra/config/generated/project.cfg
+++ b/infra/config/generated/project.cfg
@@ -6,3 +6,9 @@
 
 name: "chromium-website"
 access: "group:all"
+lucicfg {
+  version: "1.29.1"
+  package_dir: ".."
+  config_dir: "generated"
+  entry_point: "main.star"
+}
diff --git a/infra/config/generated/tricium-prod.cfg b/infra/config/generated/tricium-prod.cfg
new file mode 100644
index 0000000..4e91d8f
--- /dev/null
+++ b/infra/config/generated/tricium-prod.cfg
@@ -0,0 +1,30 @@
+# Auto-generated by lucicfg.
+# Do not modify manually.
+
+functions {
+  type: ANALYZER
+  name: "ChromiumWebsiteTryChromiumWebsiteTryBuilder"
+  needs: GIT_FILE_DETAILS
+  provides: RESULTS
+  impls {
+    provides_for_platform: LINUX
+    runtime_platform: LINUX
+    recipe {
+      project: "chromium-website"
+      bucket: "try"
+      builder: "chromium-website-try-builder"
+    }
+  }
+}
+selections {
+  function: "ChromiumWebsiteTryChromiumWebsiteTryBuilder"
+  platform: LINUX
+}
+repos {
+  gerrit_project {
+    host: "chromium-review.googlesource.com"
+    project: "experimental/website"
+    git_url: "https://chromium.googlesource.com/experimental/website"
+  }
+}
+service_account: "tricium-prod@appspot.gserviceaccount.com"
diff --git a/infra/config/main.star b/infra/config/main.star
index b86b771..5a3eaf8 100755
--- a/infra/config/main.star
+++ b/infra/config/main.star
@@ -62,6 +62,7 @@
         "luci-milo.cfg",
         "luci-scheduler.cfg",
         "realms.cfg",
+        "tricium-prod.cfg",
     ],
     fail_on_warnings = True,
 )
@@ -73,6 +74,7 @@
     milo = "luci-milo",
     scheduler = "luci-scheduler",
     swarming = "chromium-swarm.appspot.com",
+    tricium="tricium-prod.appspot.com",
     acls = [
         acl.entry(
             [
@@ -173,6 +175,12 @@
         transient_failure_weight = 1,
         timeout_weight = 2,
     ),
+    verifiers = [
+        luci.cq_tryjob_verifier(
+            builder = "chromium-website-try-builder",
+            mode_allowlist = [cq.MODE_ANALYZER_RUN],
+        ),
+    ],
 )
 
 luci.bucket(name = "try", acls = [
@@ -201,8 +209,3 @@
     execution_timeout = 1 * time.hour,
     dimensions = {"cpu": "x86-64", "os": _LINUX_OS, "pool": "luci.flex.try"},
 )
-
-luci.cq_tryjob_verifier(
-    builder = "chromium-website-try-builder",
-    cq_group = PROJECT_NAME,
-)