Add {packs,results} to minio store artifact names
This commit is contained in:
committed by
=Michael Hohn
parent
8577e1775a
commit
0115e74d07
@@ -326,11 +326,13 @@ func (c *CommanderSingle) MRVAStatus(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
|
||||
// Download artifacts
|
||||
func (c *CommanderSingle) MRVADownloadArtifactCommon(w http.ResponseWriter, r *http.Request, jobRepoId int, jobSpec common.JobSpec) {
|
||||
func (c *CommanderSingle) MRVADownloadArtifactCommon(w http.ResponseWriter,
|
||||
r *http.Request, jobRepoId int, jobSpec common.JobSpec) {
|
||||
slog.Debug("MRVA artifact download",
|
||||
"codeql_variant_analysis_id", jobSpec.SessionID,
|
||||
"repo_owner", jobSpec.NameWithOwner.Owner,
|
||||
"repo_name", jobSpec.NameWithOwner.Repo,
|
||||
"jobRepoId", jobRepoId,
|
||||
)
|
||||
|
||||
c.sendArtifactDownloadResponse(w, jobRepoId, jobSpec)
|
||||
@@ -424,7 +426,8 @@ func (c *CommanderSingle) MRVADownloadArtifact(w http.ResponseWriter, r *http.Re
|
||||
c.MRVADownloadArtifactCommon(w, r, -1, jobSpec)
|
||||
}
|
||||
|
||||
func (c *CommanderSingle) sendArtifactDownloadResponse(w http.ResponseWriter, jobRepoId int, jobSpec common.JobSpec) {
|
||||
func (c *CommanderSingle) sendArtifactDownloadResponse(w http.ResponseWriter,
|
||||
jobRepoId int, jobSpec common.JobSpec) {
|
||||
var response common.DownloadResponse
|
||||
|
||||
slog.Debug("Forming download response", "job", jobSpec)
|
||||
@@ -511,6 +514,8 @@ func (c *CommanderSingle) sendArtifactDownloadResponse(w http.ResponseWriter, jo
|
||||
return
|
||||
}
|
||||
|
||||
slog.Debug("MRVA: Sending download response", "responseJson", responseJson)
|
||||
|
||||
// Send analysisReposJSON via ResponseWriter
|
||||
w.Header().Set("Content-Type", "application/json")
|
||||
w.Write(responseJson)
|
||||
|
||||
Reference in New Issue
Block a user