Skip to content

Commit

Permalink
Merge pull request #156 from screwdriver-cd/fixUrl
Browse files Browse the repository at this point in the history
fix(527): fix build url
  • Loading branch information
minzcmu authored Apr 18, 2017
2 parents 0f6d46d + b24b6be commit e1cb44b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class BuildModel extends BaseModel {
sha: this.sha,
buildStatus: this.status,
jobName: job.name,
url: `${this[uiUri]}/pipelines/${pipeline.id}/build/${this.id}`
url: `${this[uiUri]}/pipelines/${pipeline.id}/builds/${this.id}`
};

return this.scm.updateCommitStatus(config);
Expand Down
2 changes: 1 addition & 1 deletion test/lib/build.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ describe('Build Model', () => {
const pipelineId = 'cf23df2207d99a74fbe169e3eba035e633b65d94';
const scmUri = 'github.com:12345:master';
const token = 'equivalentToOneQuarter';
const url = `${uiUri}/pipelines/${pipelineId}/build/${buildId}`;
const url = `${uiUri}/pipelines/${pipelineId}/builds/${buildId}`;
let BuildModel;
let datastore;
let executorMock;
Expand Down

0 comments on commit e1cb44b

Please sign in to comment.