Skip to content

Commit

Permalink
Fix misleading in logging statement in parallelPipeline Method (#2566)
Browse files Browse the repository at this point in the history
* Fix misleading in logging statement

* Update GitRepositoryRule.java

The original logging statement incorrectly logged the range of branch numbers as [1-(number + 1)], which implies that one more branch than specified is created. The update corrects this by logging the range as [1-number], matching the actual number of branches created in the loop.
  • Loading branch information
logresearch authored Jul 30, 2024
1 parent 1fbf636 commit 3d7b358
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public List<Ref> createBranches(@NotNull String prefix, int number) throws GitAP
Ref ref = client.branchCreate().setName(prefix + i).call();
refs.add(ref);
}
logger.info("Created " + number + " branches " + prefix + "[1-" + (number + 1) + "]");
logger.info("Created " + number + " branches " + prefix + "[1-" + number + "]");

return refs;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ public void simplePipeline(String newBranch) {
* @param numberOfParallels number of parallel branches we want to create.
*/
public void parallelPipeline(int numberOfParallels) {
logger.info("Editing a parallel pipeline");
logger.info("Creating a parallel pipeline from scratch");
for (int i = 1; i < numberOfParallels; i++) {
logger.info("Create stage Parallel-" + i);
// The "add" Button will always have the id pipeline-node-hittarget-2-add
Expand Down

0 comments on commit 3d7b358

Please sign in to comment.