Skip to content

Commit

Permalink
fix(backend): fix cache server output (#1018)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomcli authored Jul 29, 2022
1 parent ea126bf commit 4240890
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions backend/src/cache/server/mutation.go
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ func mutateContainer(results map[string][]*tektonv1beta1.TaskRunResult, original
args := []string{}
args = append(args, "printf 'This step output is taken from cache.\n\n'")
for _, result := range outputs {
arg := fmt.Sprintf("printf '%s: %s\n'; printf '%s' > /tekton/results/%s", result.Name, result.Value, result.Value, result.Name)
arg := fmt.Sprintf("printf '%s: %s\n'; printf '%s' > /tekton/results/%s", result.Name, result.Value.StringVal, result.Value.StringVal, result.Name)
args = append(args, arg)
}

Expand Down Expand Up @@ -335,7 +335,6 @@ func unmarshalResult(taskResult string) (map[string][]*tektonv1beta1.TaskRunResu
if err != nil {
return nil, err
}

return results, nil
}

Expand Down

0 comments on commit 4240890

Please sign in to comment.