buildenv, cmd/gomoteserver: add LUCI project configuration

This change adds the configuration for the LUCI project gomote GCS
bucket.

For golang/go#61772

Change-Id: Ibfab47abae3d43831ad22d1076aaedd0165fd26d
Reviewed-on: https://go-review.googlesource.com/c/build/+/538676
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Auto-Submit: Carlos Amedee <carlos@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
This commit is contained in:
Carlos Amedee 2023-10-31 11:09:03 -04:00 коммит произвёл Gopher Robot
Родитель 869409ff33
Коммит 3403d10ebb
2 изменённых файлов: 7 добавлений и 4 удалений

Просмотреть файл

@ -295,9 +295,10 @@ var Production = &Environment{
}
var LUCIProduction = &Environment{
ProjectName: "golang-ci-luci",
ProjectNumber: 257595674695,
IsProd: true,
ProjectName: "golang-ci-luci",
ProjectNumber: 257595674695,
IsProd: true,
GomoteTransferBucket: "gomote-luci-transfer",
}
var Development = &Environment{
@ -312,6 +313,7 @@ var possibleEnvs = map[string]*Environment{
"dev": Development,
"symbolic-datum-552": Production,
"go-dashboard-dev": Staging,
"golang-ci-luci": LUCIProduction,
}
var (

Просмотреть файл

@ -60,8 +60,9 @@ func main() {
if err != nil {
log.Fatalf("metadata.ProjectID() = %v", err)
}
luciEnv := buildenv.ByProjectID("golang-ci-luci")
env := buildenv.ByProjectID(projectID)
gomoteBucket = env.GomoteTransferBucket
gomoteBucket = luciEnv.GomoteTransferBucket
var coordinatorBackend, serviceID = "coordinator-internal-iap", ""
if serviceID = env.IAPServiceID(coordinatorBackend); serviceID == "" {
log.Fatalf("unable to retrieve Service ID for backend service=%q", coordinatorBackend)