screwdriver-api 7.0.236 → 7.0.238

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "screwdriver-api",
3
- "version": "7.0.236",
3
+ "version": "7.0.238",
4
4
  "description": "API server for the Screwdriver.cd service",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -95,6 +95,13 @@ module.exports = () => ({
95
95
  await validateUserPermission(build, request);
96
96
  }
97
97
 
98
+ if (request.payload.status && request.payload.status === 'FAILURE') {
99
+ request.log(
100
+ ['PUT', 'builds', id],
101
+ `Build failed. Received payload: ${JSON.stringify(request.payload)}`
102
+ );
103
+ }
104
+
98
105
  const newBuild = await updateBuildAndTriggerDownstreamJobs(
99
106
  request.payload,
100
107
  build,