Curl does not download the correct package in helm and generic package download jobs.

When object storage (S3) is used for packages and proxy_download is set to false, instead of following the redirect URL returned by the object store aka S3, curl writes the URL to the output rather than the actual file. This of course causes the job to fail.


< cache-control: no-cache
< vary: Origin
< x-content-type-options: nosniff
< x-frame-options: SAMEORIGIN
< x-request-id: 01GAVRXK1H38TWARHWFCANQ679
< x-runtime: 0.067044
< strict-transport-security: max-age=63072000
< referrer-policy: strict-origin-when-cross-origin
< 
{ [533 bytes data]
100   533  100   533    0     0   2374      0 --:--:-- --:--:-- --:--:--  2379
* Connection #0 to host git.asmgmt.hilti.com left intact
$ tar -zxf ./${PKGFILE}
tar: invalid magic
tar: short read
Uploading artifacts for failed job
00:03
Uploading artifacts...
./test-chart-1.0.0+008d14d4.tgz: found 1 matching files and directories 
Uploading artifacts as "archive" to coordinator... 201 Created  id=6192845 responseStatus=201 Created token=QA1TZfpP
Cleaning up project directory and file based variables
00:01
ERROR: Job failed: exit code 1

test-chart-1.0.0+008d14d4.tgz

Edited by Moulick Aggarwal