Skip to content

Commit

Permalink
Merge pull request #143 from screwdriver-cd/revert-142-notimetolose
Browse files Browse the repository at this point in the history
Revert "feat(545): add field to timeout builds"
  • Loading branch information
minzcmu authored Jun 9, 2017
2 parents 8212ee6 + 784aab5 commit 12a06cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
10 changes: 2 additions & 8 deletions models/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,6 @@ const MODEL = {
.isoDate()
.description('When this build stopped running'),

timeoutTime: Joi
.string()
.isoDate()
.description('When this build should stop due to timeout'),

parameters: Joi
.object()
.description('Input parameters that defined this build'),
Expand Down Expand Up @@ -141,7 +136,7 @@ module.exports = {
'id', 'jobId', 'number', 'cause', 'createTime', 'status'
], [
'container', 'parentBuildId', 'sha', 'startTime', 'endTime', 'meta', 'parameters', 'steps',
'commit', 'eventId', 'environment', 'timeoutTime'
'commit', 'eventId', 'environment'
])).label('Get Build'),

/**
Expand All @@ -153,8 +148,7 @@ module.exports = {
update: Joi.object(mutate(MODEL, [
'status'
], [
'meta',
'timeoutTime'
'meta'
])).label('Update Build'),

/**
Expand Down
1 change: 0 additions & 1 deletion test/data/build.update.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Build Update Example
status: ABORTED
timeoutTime: '2017-05-08T22:48:53+00:00'
meta:
yes: no

0 comments on commit 12a06cb

Please sign in to comment.