summaryrefslogtreecommitdiffstats
path: root/proto/internal/post_build_result.proto
blob: c0be4686a397611b0ac8338cbbc7341fb1470fc3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
// Copyright 2008 Google Inc.
//
// 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
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package codereview.internal;
option java_package = "com.google.codereview.internal";

// Update a build entity with the results of the build
// (status of build, log file)
//
message PostBuildResultRequest {
  // Unique number assigned by a previous SubmitBuildResponse
  //
  required int32 build_id = 10;

  enum ResultType {
    SUCCESS = 1;   // the build (and/or tests) completed normally
    FAILURE = 2;   // the build (and/or tests) did not pass
  }
  required ResultType build_status = 11;

  // Complete output (log file and/or captured stdout/stderr)
  // This message usually contains embedded newlines and is
  // the direct output of 'make' or some other process.
  //
  optional string build_log = 12;
}

// Information about a branch that needs to finish merging
//
message PostBuildResultResponse {
  // The repository the merge should take place in
  //
  optional string dest_project_name = 10;

  // Unique key for the repository
  //
  optional string dest_project_key = 11;

  // The branch the result of the merge goes into
  //
  optional string dest_branch_name = 12;

  // Unique key for the branch (and repository).
  //
  optional string dest_branch_key = 13;

  // Revision the branch should advance to if the branch
  // wants to advance based on the build result.
  //
  optional string revision_id = 14;

  // Unique keys of the PatchSets which would be added
  // to the branch if the branch is updated to match
  // revision_id
  //
  repeated string new_change = 1;
}