build_status.proto 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. // Copyright 2020 Google LLC
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. syntax = "proto3";
  15. package google.devtools.build.v1;
  16. import "google/protobuf/wrappers.proto";
  17. import "google/protobuf/any.proto";
  18. option cc_enable_arenas = true;
  19. option go_package = "google.golang.org/genproto/googleapis/devtools/build/v1;build";
  20. option java_multiple_files = true;
  21. option java_outer_classname = "BuildStatusProto";
  22. option java_package = "com.google.devtools.build.v1";
  23. option php_namespace = "Google\\Cloud\\Build\\V1";
  24. // Status used for both invocation attempt and overall build completion.
  25. message BuildStatus {
  26. // The end result of the Build.
  27. enum Result {
  28. // Unspecified or unknown.
  29. UNKNOWN_STATUS = 0;
  30. // Build was successful and tests (if requested) all pass.
  31. COMMAND_SUCCEEDED = 1;
  32. // Build error and/or test failure.
  33. COMMAND_FAILED = 2;
  34. // Unable to obtain a result due to input provided by the user.
  35. USER_ERROR = 3;
  36. // Unable to obtain a result due to a failure within the build system.
  37. SYSTEM_ERROR = 4;
  38. // Build required too many resources, such as build tool RAM.
  39. RESOURCE_EXHAUSTED = 5;
  40. // An invocation attempt time exceeded its deadline.
  41. INVOCATION_DEADLINE_EXCEEDED = 6;
  42. // Build request time exceeded the request_deadline
  43. REQUEST_DEADLINE_EXCEEDED = 8;
  44. // The build was cancelled by a call to CancelBuild.
  45. CANCELLED = 7;
  46. }
  47. // The end result.
  48. Result result = 1;
  49. // Final invocation ID of the build, if there was one.
  50. // This field is only set on a status in BuildFinished event.
  51. string final_invocation_id = 3;
  52. // Build tool exit code. Integer value returned by the executed build tool.
  53. // Might not be available in some cases, e.g., a build timeout.
  54. google.protobuf.Int32Value build_tool_exit_code = 4;
  55. // Fine-grained diagnostic information to complement the status.
  56. google.protobuf.Any details = 2;
  57. }