screwdriver-api 7.0.134 → 7.0.136
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
package/plugins/builds/index.js
CHANGED
|
@@ -294,7 +294,7 @@ const buildsPlugin = {
|
|
|
294
294
|
|
|
295
295
|
// if nextBuild is stage teardown, just return nextBuild
|
|
296
296
|
if (current.stage) {
|
|
297
|
-
const buildDeletePromises = handleStageFailure({
|
|
297
|
+
const buildDeletePromises = await handleStageFailure({
|
|
298
298
|
nextJobName,
|
|
299
299
|
current,
|
|
300
300
|
buildConfig,
|
package/plugins/events/create.js
CHANGED
|
@@ -79,6 +79,9 @@ module.exports = () => ({
|
|
|
79
79
|
|
|
80
80
|
if (creator) {
|
|
81
81
|
payload.creator = creator;
|
|
82
|
+
if (creator.username !== 'sd:scheduler') {
|
|
83
|
+
payload.creator.username = username;
|
|
84
|
+
}
|
|
82
85
|
} else if (scope.includes('pipeline')) {
|
|
83
86
|
payload.creator = {
|
|
84
87
|
name: 'Pipeline Access Token', // Display name
|