Git Product home page Git Product logo

Comments (3)

timja avatar timja commented on July 19, 2024 1

Can you raise this with the artifact manager with S3 plugin please, its unlikely to be an issue with configuration as code

from configuration-as-code-plugin.

davorceman avatar davorceman commented on July 19, 2024

@timja
I think I just figured out

Seems that prefix parameter is required even value is empty string. I don't have prefix, all artifacts are in the root of the bucket.

I compared io.jenkins.plugins.artifact_manager_jcloud.s3.S3BlobstorageConfig.xml before and after save, and after saving few lines are added to that .xml

<prefix></prefix>
<customEndpoint></customEndpoint>
<customSigningRegion></customSigningRegion>

I did not set it because when I checked "View Configuration", prefix parameter was omitted.
Also now I noticed that my new builds without prefix set created directory started with null.
So instead having

s3://my-bucket-name/my-job-name/master/425/artifacts/....

this was created

s3://my-bucket-name/nullmy-job-name/master/425/artifacts/....

So this CasC solved the issue

aws:
  awsCredentials:
    region: "eu-west-2"
  s3:
    container: "my-s3-bucket"
    disableSessionToken: false
    useHttp: false
    usePathStyleUrl: false
    useTransferAcceleration: false
    prefix: ""

Even I have now set prefix to empty string, CasC plugin on "View Configuration" did not added it there.

Do you still think this should be raised with Artifact Manager on S3 plugn?

from configuration-as-code-plugin.

timja avatar timja commented on July 19, 2024

yes it should handle that case

from configuration-as-code-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.