diff --git a/src/main/java/com/jfrog/ide/idea/ci/CiManager.java b/src/main/java/com/jfrog/ide/idea/ci/CiManager.java index abbb07d0..b284c2e7 100644 --- a/src/main/java/com/jfrog/ide/idea/ci/CiManager.java +++ b/src/main/java/com/jfrog/ide/idea/ci/CiManager.java @@ -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); }