Skip to content

Commit

Permalink
CH : remove counter
Browse files Browse the repository at this point in the history
  • Loading branch information
sokratis.sidereas committed Dec 6, 2023
1 parent ca8d81b commit 1c1746f
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import java.util.List;
import java.util.Map;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.stream.Collectors;

import com.google.common.base.Stopwatch;
Expand All @@ -36,7 +35,6 @@ public class Collector {
public static final int parrallelThreads = 6;
public static final int delayThreads = 6000;
public static final int maxThreadTime = 120000;
public AtomicInteger threadCounter = new AtomicInteger(0);
// Urls
public static final String DEPTH = "?depth=1";

Expand Down Expand Up @@ -205,7 +203,7 @@ public void collectResults(List<Data> dataJob, boolean compareWithPreviousRun, B
ReportThread[] threads = new ReportThread[allDataJobDTO.size()];
int index = 0;
for (Job tempDataJobDTO : allDataJobDTO) {
threads[index] = new ReportThread(tempDataJobDTO, compareWithPreviousRun, ignoreRunningJobs, allDataJobDTO.size());
threads[index] = new ReportThread(tempDataJobDTO, compareWithPreviousRun, ignoreRunningJobs);
index++;
}
index = 0;
Expand All @@ -227,20 +225,17 @@ public class ReportThread extends Thread {
Job job;
boolean compareWithPreviousRun;
boolean ignoreRunningJobs;
int total;

public ReportThread(Job job, boolean compareWithPreviousRun, boolean ignoreRunningJobs, int total) {
public ReportThread(Job job, boolean compareWithPreviousRun, boolean ignoreRunningJobs) {

Check warning on line 229 in src/main/java/com/jenkins/testresultsaggregator/actions/Collector.java

View check run for this annotation

ci.jenkins.io / Code Coverage

Not covered lines

Lines 206-229 are not covered by tests
this.job = job;
this.compareWithPreviousRun = compareWithPreviousRun;
this.ignoreRunningJobs = ignoreRunningJobs;
this.total = total;
}

@Override
public void run() {
Stopwatch stopwatch = Stopwatch.createStarted();
StringBuilder text = new StringBuilder();
// text.append(threadCounter.incrementAndGet() + "/" + total + " ");
if (job.getModelJob() != null) {
try {
job.setJob(getDetails(job));
Expand Down

0 comments on commit 1c1746f

Please sign in to comment.