blob: 62bb99a331c0f93de2dac3734bf60430d6866998 [file] [log] [blame] [edit]
# This is configuration for LUCI for the git-repohooks repo
# https://gerrit.googlesource.com/git-repohooks
# Set up Swarming permissions (for LED).
luci.binding(
realm = "try",
roles = "role/swarming.taskTriggerer",
groups = "mdb/git-repo-try-build-access",
)
luci.binding(
realm = "pools/try",
roles = "role/swarming.poolUser",
groups = "mdb/git-repo-try-build-access",
)
luci.builder(
name = "Verify git-repohooks CL",
bucket = "try",
executable = luci.recipe(
name = "git-repohooks",
),
service_account = "gerrit-luci-try-builder@gerritcodereview-ci.iam.gserviceaccount.com",
dimensions = {
"os": "Ubuntu",
"cpu": "x86-64",
"pool": "luci.gerrit.try",
},
)
luci.cq_group(
name = "git-repohooks_repo",
acls = [
acl.entry(
roles = [acl.CQ_DRY_RUNNER, acl.CQ_NEW_PATCHSET_RUN_TRIGGERER],
groups = "all",
),
acl.entry(
acl.CQ_COMMITTER,
groups = "googlers",
),
],
watch = cq.refset(
repo = "https://gerrit.googlesource.com/git-repohooks",
refs = ["refs/heads/.+"],
),
)
luci.cq_tryjob_verifier(
builder = "try/Verify git-repohooks CL",
cq_group = "git-repohooks_repo",
# Add NEW_PATCHSET_RUN to the defaults DRY_RUN and FULL_RUN
mode_allowlist = [
cq.MODE_DRY_RUN,
cq.MODE_FULL_RUN,
cq.MODE_NEW_PATCHSET_RUN,
],
)