Skip to content

Commit

Permalink
fix(repository): trigger new build and fetch latest build
Browse files Browse the repository at this point in the history
  • Loading branch information
jkuri committed Sep 22, 2017
1 parent c0eb213 commit d1c4692
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/api/process-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,7 @@ export function stopJob(jobId: number): Promise<void> {

export function startBuild(data: any): Promise<any> {
let config: JobsAndEnv[];
let repoId = data.repositories_id;
let pr = null;
let sha = null;
let branch = null;
Expand Down Expand Up @@ -424,7 +425,7 @@ export function startBuild(data: any): Promise<any> {
jobEvents.next({
type: 'process',
build_id: data.build_id,
repository_id: data.repositories_id,
repository_id: repoId,
data: 'build added'
});
})
Expand Down

0 comments on commit d1c4692

Please sign in to comment.