Skip to content

Commit

Permalink
Bugfix - Broken AQL request when build is not defined in FilesGroup (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
gsfraley committed Jun 27, 2022
1 parent 1e48514 commit c2dc9f7
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -62,7 +62,11 @@ public List<AqlSearchResult.SearchEntry> run() throws IOException {
if (this.filesGroup.getSpecType() == FilesGroup.SpecType.BUILD) {
artifactsSha1SearchResults = queryResults;
} else {
artifactsSha1SearchResults = fetchBuildArtifactsSha1();
if (!StringUtils.isBlank(this.buildName) && !StringUtils.isBlank(this.buildNumber)) {
artifactsSha1SearchResults = fetchBuildArtifactsSha1();
} else {
artifactsSha1SearchResults = new ArrayList<>();
}
}

List<AqlSearchResult.SearchEntry> results = filterResult(queryResults, artifactsSha1SearchResults);
Expand Down

0 comments on commit c2dc9f7

Please sign in to comment.