blob: ec37533eafe6853e2c8833f0b5331d963ce59ec2 [file] [log] [blame]
// Copyright 2018 The LUCI Authors.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// See the License for the specific language governing permissions and
// limitations under the License.
syntax = "proto3";
package buildbucket.v2;
option go_package = ";buildbucketpb";
import "";
// This file is meant for protos passed and used internally.
// A collection of build-related secrets we might pass from Buildbucket to Kitchen.
message BuildSecrets {
// Token to identify RPCs associated with the same build.
string build_token = 1;
// Arguments for luci_runner command.
// All paths are relateive to the runner process' working directory.
message RunnerArgs {
// Buildbucket service hostname, e.g. "".
string buildbucket_host = 1;
// LogDog service hostname, e.g. "".
string logdog_host = 2;
// Initial state of the build, including immutable state such as id and input
// properties.
Build build = 3;
// Where to put temp files and create CWD for the user executable.
// MUST not exist.
// Required.
string work_dir = 4;
// Path to the user executable.
// Required.
string executable_path = 5;
// Path to a directory where each subdirectory is a cache dir.
// Managed by Swarming.
// Required.
string cache_dir = 6;
// List of Gerrit hosts to force git authentication for.
// By default public hosts are accessed anonymously, and the anonymous access
// has very low quota. Context needs to know all such hostnames in advance to
// be able to force authenticated access to them.
repeated string known_public_gerrit_hosts = 7;
// Use this LUCI context logical account for system-level operations.
string luci_system_account = 8;