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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "screwdriver-api",
3
- "version": "6.0.30",
3
+ "version": "6.0.32",
4
4
  "description": "API server for the Screwdriver.cd service",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -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 && existingBuild.status !== 'CREATED' ? existingBuild : null;
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