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 command line flag for overriding plugin info location + document proxy configuration #106

Merged
merged 4 commits into from
Jun 27, 2020

Conversation

ricksbrown
Copy link
Contributor

Thanks for the tool. We too have created something similar and I would like to delete ours and use this instead. I have only just started experimenting, this PR contains what I needed in terms of code patches and some documentation that would have shaved hours off the time it took me to work this all out.

In summary:

  • Allow hard-coded URL DEFAULT_PLUGIN_INFO_LOCATION to be overridden via cli and env like the other URLs.
  • Add documentation, tips, examples for downloading plugins thru a corporate proxy, including NTLM authentication and avoiding https.
  • Directions to download pre-built jar instead of building (which is difficult in a corporate environment due to the use of non-standard maven repo @ repo.jenkins-ci.org/public/
  • Fixed a few typos as I went.

The URL to plugin-versions.json is hard-coded unlike all other URLs.
This commit also updates the readme to provide guidance for people in
a highly locked down corporate environment.
In addition to being easier for everyone this is particularly helpful
behind a corporate proxy where connecting to the non-standard maven
repository https://repo.jenkins-ci.org/public/ can be challenging.
Copy link
Member

@timja timja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One issue about http

README.md Outdated
#### Proxy Support
Proxy support is available using standard [Java networking system properties](https://docs.oracle.com/javase/7/docs/api/java/net/doc-files/net-properties.html) `http.proxyHost` and `http.proxyPort`. Note that this provides only basic NTLM support and you may need to use an authentication proxy like [CNTLM](https://sourceforge.net/projects/cntlm/).

If you are behind a corporate proxy using a self-signed certificate you may wish to use the http variants of the default urls. The full list is given below for convenience.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don’t think recommending http is a good idea, it’ll likely break at some point when https in enforced.

Copy link
Member

@oleg-nenashev oleg-nenashev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good overall, thanks for the pull request!

@timja timja changed the title Facilitate use behind corporate proxy Add environmenet variable for overriding plugin info version + document proxy configuration Jun 27, 2020
@timja timja added documentation Improvements or additions to documentation enhancement New feature or request labels Jun 27, 2020
@timja timja changed the title Add environmenet variable for overriding plugin info version + document proxy configuration Add environmenet variable for overriding plugin info location + document proxy configuration Jun 27, 2020
@timja timja merged commit 9a38787 into jenkinsci:master Jun 27, 2020
@timja timja changed the title Add environmenet variable for overriding plugin info location + document proxy configuration Add command line flag for overriding plugin info location + document proxy configuration Jun 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants