Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
yahavi committed Oct 4, 2023
2 parents 15552e7 + 5d45e59 commit 9684938
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion artifactory/services/utils/artifactoryutils.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,10 @@ func filterAqlSearchResultsByBuild(specFile *CommonParams, reader *content.Conte
if err != nil {
return nil, err
}
if buildName == "" {
// If build was not found, return an empty reader to filter out all artifacts
return content.NewEmptyContentReader(content.DefaultKey), nil
}

aggregatedBuilds, err := getAggregatedBuilds(buildName, buildNumber, specFile.Project, flags)
if err != nil {
Expand Down Expand Up @@ -580,7 +584,7 @@ func GetBuildInfo(buildName, buildNumber, projectKey string, flags CommonConf) (

// Build BuildInfo struct from json.
publishedBuildInfo := &buildinfo.PublishedBuildInfo{}
if err := json.Unmarshal(body, publishedBuildInfo); err != nil {
if err = json.Unmarshal(body, publishedBuildInfo); err != nil {
return nil, true, err
}

Expand Down
2 changes: 1 addition & 1 deletion utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
const (
Development = "development"
Agent = "jfrog-client-go"
Version = "1.34.0"
Version = "1.34.1"
)

type MinVersionProduct string
Expand Down

0 comments on commit 9684938

Please sign in to comment.