Skip to content

Commit

Permalink
refactor(core/ci): Migrate to builds api v3 (#8892)
Browse files Browse the repository at this point in the history
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
christopherthielen and mergify[bot] committed Feb 10, 2021
1 parent 08b6286 commit f8d3d43
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/scripts/modules/core/src/ci/igor.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ export class IgorService {
}

public static listJobsForMaster(master: string): PromiseLike<string[]> {
return REST('/v2/builds').path(master, 'jobs').get();
return REST('/v3/builds').path(master, 'jobs').get();
}

public static listBuildsForJob(master: string, job: string): PromiseLike<IBuild[]> {
return REST('/v2/builds').path(master, 'builds', job).get();
return REST('/v3/builds').path(master, 'builds').query({ job }).get();
}

public static getJobConfig(master: string, job: string): PromiseLike<IJobConfig> {
return REST('/v2/builds').path(master, 'jobs', job).get();
return REST('/v3/builds').path(master, 'jobs').query({ job }).get();
}

public static getGcbAccounts(): PromiseLike<string[]> {
Expand Down

0 comments on commit f8d3d43

Please sign in to comment.