gonzadocarmo / teamcity-s3-plugin

Apache License 2.0
17 stars 8 forks source link

Uploader mangles upload paths #19

Open deceze opened 2 years ago

deceze commented 2 years ago

Build step 1 produces a folder of files:

static/
  admin/
    css/
      ...
  rest_framework/
    css/
      ...

(The result of a Django collectstatic command.)

In step 2, I want to upload this to S3. I configure the Artefacts paths as static/ (or static/**, or static/**/*, or whatever, tried several variations.)

Problem: The uploader mangles the paths together, e.g.:

Uploading to <bucket name>/admin/css/work/docs/css/base.css

That "/work/" in there is a mixup of rest_framework; this path does not actually exist in the artefacts.

JacKeTUs commented 2 years ago

I had the same problem as you, so i wrote a fix for it. Please, try that version

deceze commented 2 years ago

@JacKeTUs Excellent! Works like a charm.