Skip to content

Commit

Permalink
feat(travis): Add numberOfJobs and buildResultLimit (spinnaker#106)
Browse files Browse the repository at this point in the history
These parameters were just added to Halyard, since the time we
added Travis support to kleat. Update kleat with them.
  • Loading branch information
ezimanyi committed Jun 23, 2020
1 parent d8ab240 commit 01400ce
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 2 deletions.
32 changes: 30 additions & 2 deletions api/client/ci/travis.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions api/proto/ci/travis.proto
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,15 @@ message TravisAccount {
// A user must have at least one of the WRITE roles in order to run jobs on
// this build account.
Permissions permissions = 6;

// Defines how many jobs the Travis integration should retrieve per polling
// cycle. Defaults to 100.
string numberOfJobs = 7;

// Defines how many builds Igor should return when querying for builds for a
// specific repo. This affects for instance how many builds will be displayed
// in the drop down when starting a manual execution of a pipeline. If set too
// high, the Travis API might return an error for jobs that writes a lot of logs,
// which is why the default setting is a bit conservative. Defaults to 10.
string buildResultLimit = 8;
}
2 changes: 2 additions & 0 deletions docs/docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -1863,6 +1863,8 @@ Configuration for a Travis account.
| baseUrl | [string](#string) | | (Required) The base URL to the Travis UI (https://travis-ci.org). |
| githubToken | [string](#string) | | The GitHub token with which to authenticate against Travis. |
| permissions | [proto.Permissions](#proto.Permissions) | | Fiat permissions configuration. A user must have at least one of the READ roles in order to view this build account or use it as a trigger source. A user must have at least one of the WRITE roles in order to run jobs on this build account. |
| numberOfJobs | [string](#string) | | Defines how many jobs the Travis integration should retrieve per polling cycle. Defaults to 100. |
| buildResultLimit | [string](#string) | | Defines how many builds Igor should return when querying for builds for a specific repo. This affects for instance how many builds will be displayed in the drop down when starting a manual execution of a pipeline. If set too high, the Travis API might return an error for jobs that writes a lot of logs, which is why the default setting is a bit conservative. Defaults to 10. |



Expand Down

0 comments on commit 01400ce

Please sign in to comment.