Skip to content

Commit

Permalink
Fix build scan results not found.
Browse files Browse the repository at this point in the history
  • Loading branch information
asafgabai committed Sep 19, 2023
1 parent d08cb2a commit 9cc2cda
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/com/jfrog/ide/idea/ci/CiManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,9 @@ public BuildGeneralInfo getBuildGeneralInfo(String buildIdentifier) {
String buildNumber = StringUtils.substringAfterLast(buildIdentifier, "/");
return (BuildGeneralInfo) root.getChildren().stream()
.map(DependencyTree::getGeneralInfo)
.filter(generalInfo -> StringUtils.equals(buildName, generalInfo.getArtifactId()))
.filter(generalInfo -> StringUtils.equals(buildNumber, generalInfo.getVersion()))
.map(generalInfo -> (BuildGeneralInfo) generalInfo)
.filter(generalInfo -> StringUtils.equals(buildName, generalInfo.getBuildName()))
.filter(generalInfo -> StringUtils.equals(buildNumber, generalInfo.getBuildNumber()))
.findAny().orElse(null);
}

Expand Down

0 comments on commit 9cc2cda

Please sign in to comment.