Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Endpoint URL field to S3Profile #121

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gmfrasca
Copy link

This would allow the ability to override/set the Endpoint URL for an S3Profile (useful for non-Amazon storage systems with S3 interfaces).

To do this currently, it appears you must create a custom endpoints.json to override the defaults, and include it in the actual Jenkins classpath. Allowing the endpoint to be set as a config field should be more a intuitive/maintainable process for this functionality.

@scoheb
Copy link

scoheb commented Aug 21, 2019

@Jimilian, any chance you can take a look at this please?

@olivergondza
Copy link
Member

@Jimilian, @cyrille-leclerc, is there something we can do to get this improvement integrated? Thanks!

@Jimilian
Copy link

Hi

Sorry for the huge delay with feedback.

Does this way work for all features? #100 required the file, because it was the recommended way in that time: S3 API recommended it for custom endpoints.

@olivergondza
Copy link
Member

@scoheb, can you please follow up with @Jimilian to drive this to completion?

@gmfrasca
Copy link
Author

gmfrasca commented Nov 5, 2019

Hello,

I've tested this on AWS and the Ceph's S3 Interface and didn't see any issues (though secondary confirmation would be much appreciated :) ). However, I don't have any other S3 interfaces on hand to run against (such as Swift and Atmos, which are explicitly listed in the README), so I'm not sure if the endpoints file requirement is still necessary there.

You wouldn't have a reference doc for where that requirement came from, would you? Everything I've looked at seems to point to using setEndpoint in-code.

Thanks!

@pecastro
Copy link

Hi,

I've stumbled onto this after trying to make the plugin work against Minio based on the notes which have been included in the the README as per #100 .
Currently, assuming one follows the instructions and amends the endpoints.json and overrides the classpath, the plugin will connect and validate against the endpoint in the Jenkins Configuration section but I've been struggling to make it upload anything.
It will always try to resolve the bucket against amazonaws.
I'll give this a shot and report back.

@pecastro
Copy link

Yap. This works. 👍

@jineshqa
Copy link

@Jimilian @cyrille-leclerc Could you kindly approve this?

@fedepell
Copy link

I did some testing using MinIO and it all seems to work fine! (file upload, bucket creation, metadata addition)
Would be definitely great if it could be merged! (Maybe @gmfrasca can just rebase to ease the work up?)

@pere3
Copy link

pere3 commented May 21, 2020

Hello, stumbled upon inability to use this plugin with s3-compatible storage (minio), really glad to see "commented yesterday" here!
+1 for this merge.

@pszubiak
Copy link

+1 I have also tested it and it works.

@4n70w4
Copy link

4n70w4 commented Feb 25, 2021

Hi! Any news?

@pecastro
Copy link

@gmfrasca Any chance you can fix the conflicts so the MR has a better chance of going in ?

@rsandell
Copy link
Member

Sorry, I didn't check for existing open PRs when I did #138 I believe this could be made less complex when applied on top of that.

@pecastro
Copy link

@rsandell Doesn't this PR become mostly obsolete with #138 ?

@lslebodn
Copy link

lslebodn commented Nov 5, 2021

Sorry, I didn't check for existing open PRs when I did #138 I believe this could be made less complex when applied on top of that.

@gmfrasca Would you mind to rebase and do changes?

@vikulin
Copy link

vikulin commented Nov 19, 2021

@gmfrasca what would happen if no endpoint was configured, in other words what is an enpoint default value?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.