screwdriver-api 4.1.178 → 4.1.179
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 +1 -1
- package/plugins/builds/index.js +5 -1
package/package.json
CHANGED
package/plugins/builds/index.js
CHANGED
|
@@ -270,7 +270,6 @@ async function createInternalBuild(config) {
|
|
|
270
270
|
} else {
|
|
271
271
|
job = await jobFactory.get(jobId);
|
|
272
272
|
}
|
|
273
|
-
|
|
274
273
|
const internalBuildConfig = {
|
|
275
274
|
jobId: job.id,
|
|
276
275
|
sha: event.sha,
|
|
@@ -410,6 +409,11 @@ function parseJobInfo({ joinObj = {}, current, nextJobName, nextPipelineId }) {
|
|
|
410
409
|
* @return {Promise} All finished builds
|
|
411
410
|
*/
|
|
412
411
|
async function getFinishedBuilds(event, buildFactory) {
|
|
412
|
+
if (!event.parentEventId) {
|
|
413
|
+
// FIXME: remove this flow to always use buildFactory.getLatestBuilds
|
|
414
|
+
return event.getBuilds();
|
|
415
|
+
}
|
|
416
|
+
|
|
413
417
|
// FIXME: buildFactory.getLatestBuilds doesn't return build model
|
|
414
418
|
const builds = await buildFactory.getLatestBuilds({ groupEventId: event.groupEventId });
|
|
415
419
|
|