Skip to content

Commit 46e3a4e

Browse files
ruhan1jdcasey
authored andcommitted
Remove nested paralleledEach from default promotion groovy (#1222)
1 parent b176ede commit 46e3a4e

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

addons/promote/common/src/main/data/promote/rules/artifact-refs-via.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class ArtifactRefAvailability implements ValidationRule {
2525
if (it.endsWith(".pom")) {
2626
def relationships = tools.getRelationshipsForPom(it, dc, request, verifyStoreKeys)
2727
if (relationships != null) {
28-
tools.paralleledEach(relationships, { rel ->
28+
tools.forEach(relationships, { rel ->
2929
def skip = false
3030
if (rel.getType() == RelationshipType.DEPENDENCY) {
3131
def dr = (DependencyRelationship) rel
@@ -42,7 +42,7 @@ class ArtifactRefAvailability implements ValidationRule {
4242
def found = false
4343
def foundPom = false
4444

45-
tools.paralleledEach(verifyStoreKeys, { verifyStoreKey ->
45+
tools.forEach(verifyStoreKeys, { verifyStoreKey ->
4646
if (!found) {
4747
def txfr = tools.getTransfer(verifyStoreKey, path)
4848
logger.info("{} in {}: {}. Exists? {}", target, verifyStoreKey, txfr, txfr == null ? false : txfr.exists())

addons/promote/common/src/main/data/promote/rules/no-pre-existing-paths.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class NoPreExistingPaths implements ValidationRule {
1616
tools.paralleledEach(request.getSourcePaths(), { it ->
1717
def aref = tools.getArtifact(it);
1818
if (aref != null) {
19-
tools.paralleledEach(verifyStoreKeys, { verifyStoreKey ->
19+
tools.forEach(verifyStoreKeys, { verifyStoreKey ->
2020
if (tools.exists(verifyStoreKey, it)) {
2121
errors.add(String.format("%s is already available in: %s", it, verifyStoreKey))
2222
}

addons/promote/common/src/main/data/promote/rules/no-snapshots.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class NoSnapshots implements ValidationRule {
2626

2727
def relationships = tools.getRelationshipsForPom(it, dc, request, verifyStoreKeys)
2828
if (relationships != null) {
29-
tools.paralleledEach(relationships, { rel ->
29+
tools.forEach(relationships, { rel ->
3030
def target = rel.getTarget()
3131
if (!target.getVersionSpec().isRelease()) {
3232
errors.add(String.format("%s uses a variable/snapshot version in: %s", target, it))

addons/promote/common/src/main/data/promote/rules/no-version-ranges.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class NoVersionRanges implements ValidationRule {
1818
if (it.endsWith(".pom")) {
1919
def relationships = tools.getRelationshipsForPom(it, dc, request, verifyStoreKeys)
2020
if (relationships != null) {
21-
tools.paralleledEach(relationships, { rel ->
21+
tools.forEach(relationships, { rel ->
2222
def target = rel.getTarget()
2323
if (!target.getVersionSpec().isSingle()) {
2424
errors.add(String.format("%s uses a compound version in: %s", target, it))

0 commit comments

Comments
 (0)