diff --git a/igor-monitor-travis/src/main/java/com/netflix/spinnaker/igor/travis/service/TravisService.java b/igor-monitor-travis/src/main/java/com/netflix/spinnaker/igor/travis/service/TravisService.java index 0516611c3..f1fb4f85a 100644 --- a/igor-monitor-travis/src/main/java/com/netflix/spinnaker/igor/travis/service/TravisService.java +++ b/igor-monitor-travis/src/main/java/com/netflix/spinnaker/igor/travis/service/TravisService.java @@ -266,7 +266,7 @@ public List getBuilds(String inputRepoSlug) { getAccessToken(), repoSlug, branch, - "push", + "push,api", buildResultLimit, addLogCompleteIfApplicable()); break; diff --git a/igor-monitor-travis/src/test/groovy/com/netflix/spinnaker/igor/travis/service/TravisServiceSpec.groovy b/igor-monitor-travis/src/test/groovy/com/netflix/spinnaker/igor/travis/service/TravisServiceSpec.groovy index 3b231e063..f34ae3aa1 100644 --- a/igor-monitor-travis/src/test/groovy/com/netflix/spinnaker/igor/travis/service/TravisServiceSpec.groovy +++ b/igor-monitor-travis/src/test/groovy/com/netflix/spinnaker/igor/travis/service/TravisServiceSpec.groovy @@ -351,10 +351,10 @@ class TravisServiceSpec extends Specification { service.accessToken = accessToken when: - def genericBuilds = service.getBuilds("my/slug") + def genericBuilds = service.getBuilds("my/slug/master") then: - 1 * client.v3builds("token someToken", "my/slug", TRAVIS_BUILD_RESULT_LIMIT, + 1 * client.v3builds("token someToken", "my/slug", "master", "push,api", TRAVIS_BUILD_RESULT_LIMIT, legacyLogFetching ? null : "build.log_complete") >> new V3Builds([builds: [build]]) (isLogCompleteFlag ? 0 : 1) * travisCache.getJobLog("travis-ci", 2) >> (isLogCached ? "log" : null) (!isLogCompleteFlag && !isLogCached ? 1 : 0) * client.jobLog("token someToken", 2) >> v3log