Permalink
Browse files

fix(repository): trigger new build and fetch latest build

  • Loading branch information...
jkuri committed Sep 22, 2017
1 parent c0eb213 commit d1c4692f329db440988ffb7125761ec66baa9f8e
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/api/process-manager.ts
@@ -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;
@@ -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'
});
})

0 comments on commit d1c4692

Please sign in to comment.