Skip to content

Commit 7de4971

Browse files
authored
BI-522 - Reduce default deployment threads for Gradle and Maven
1 parent 0353e7a commit 7de4971

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Diff for: build-info-extractor/src/main/java/org/jfrog/build/extractor/ModuleParallelDeployHelper.java

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
* The deployment of every module will always be serial, with maven / gradle descriptors deployed last. This is done to prevent conflicts in Artifactory.
1818
*/
1919
public class ModuleParallelDeployHelper {
20+
public static final int DEFAULT_DEPLOYMENT_THREADS = 3;
21+
2022
public void deployArtifacts(ArtifactoryBuildInfoClient client,
2123
Map<String, Set<DeployDetails>> deployableArtifactsByModule, int publishForkCount) {
2224
if (publishForkCount <= 1) {

Diff for: build-info-extractor/src/main/java/org/jfrog/build/extractor/clientConfiguration/ArtifactoryClientConfiguration.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
import static org.jfrog.build.api.IssuesTrackerFields.*;
4343
import static org.jfrog.build.api.LicenseControlFields.AUTO_DISCOVER;
4444
import static org.jfrog.build.api.LicenseControlFields.VIOLATION_RECIPIENTS;
45+
import static org.jfrog.build.extractor.ModuleParallelDeployHelper.DEFAULT_DEPLOYMENT_THREADS;
4546
import static org.jfrog.build.extractor.clientConfiguration.ClientConfigurationFields.*;
4647
import static org.jfrog.build.extractor.clientConfiguration.ClientProperties.*;
4748

@@ -365,7 +366,7 @@ public void setPublishForkCount(int value) {
365366
}
366367

367368
public Integer getPublishForkCount() {
368-
return getIntegerValue(PUBLISH_FORK_COUNT, 8);
369+
return getIntegerValue(PUBLISH_FORK_COUNT, DEFAULT_DEPLOYMENT_THREADS);
369370
}
370371

371372
public boolean isRecordAllDependencies() {

0 commit comments

Comments
 (0)