Skip to content

Commit 10565ff

Browse files
committed
getAnalyzerManagerRemoteDetails
1 parent 8dbc116 commit 10565ff

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

jas/analyzermanager.go

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -233,15 +233,16 @@ func DownloadAnalyzerManagerIfNeeded(threadId int) error {
233233
}
234234

235235
func getAnalyzerManagerRemoteDetails(downloadPath string) (server *config.ServerDetails, fullRemotePath string, err error) {
236-
var remoteRepo string
237-
server, remoteRepo, err = dependencies.GetRemoteDetails(coreutils.ReleasesRemoteEnv)
238-
if err != nil {
239-
return
240-
}
241-
if remoteRepo != "" {
242-
fullRemotePath = path.Join(remoteRepo, "artifactory", downloadPath)
243-
return
244-
}
236+
//var remoteRepo string
237+
//server, remoteRepo, err = dependencies.GetRemoteDetails(coreutils.ReleasesRemoteEnv)
238+
//if err != nil {
239+
// return
240+
//}
241+
//if remoteRepo != "" {
242+
// fullRemotePath = path.Join(remoteRepo, "artifactory", downloadPath)
243+
// return
244+
//}
245+
log.Info("Downloading Analyzer Manager from releases.jfrog.io.")
245246
log.Debug("'" + coreutils.ReleasesRemoteEnv + "' environment variable is not configured. The Analyzer Manager app will be downloaded directly from releases.jfrog.io if needed.")
246247
// If not configured to download through a remote repository in Artifactory, download from releases.jfrog.io.
247248
return &config.ServerDetails{ArtifactoryUrl: coreutils.JfrogReleasesUrl}, downloadPath, nil

0 commit comments

Comments
 (0)