screwdriver-api 6.0.30 → 6.0.32
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
|
@@ -931,7 +931,11 @@ const buildsPlugin = {
|
|
|
931
931
|
.map(j => {
|
|
932
932
|
const existingBuild = externalGroupBuilds.find(b => b.jobId === nextJobs[j].id);
|
|
933
933
|
|
|
934
|
-
return existingBuild &&
|
|
934
|
+
return existingBuild &&
|
|
935
|
+
existingBuild.status !== 'CREATED' &&
|
|
936
|
+
!existingBuild.parentBuildId.includes(current.build.id)
|
|
937
|
+
? existingBuild
|
|
938
|
+
: null;
|
|
935
939
|
})
|
|
936
940
|
.filter(b => b !== null);
|
|
937
941
|
|