emicklei / artreyu-nexus

plugin for artreyu, tool for artifact assemly, that uses a Sonatype Nexus repository
MIT License
1 stars 1 forks source link

netrc for creds #2

Open mcqueenorama opened 9 years ago

mcqueenorama commented 9 years ago

I'm thinking it would be good to support netrc for reading the credentials. Creds could be omitted from the yaml file, and this nexus plugin would check the netrc for creds for the corresponding url, and use them for the auth.

This works pretty well:

https://godoc.org/code.google.com/p/go-netrc/netrc

I just want your thoughts on these issues. I'll do them myself and send some pull requests, once there's a design that makes sense to you.

emicklei commented 9 years ago

Yes, let's have support for netrc too and fallback to yaml. I am happy to accept your PR. Thanks

mcqueenorama commented 9 years ago

will fork this from walmartlabs repo and send in a pull request