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

install-plugins uses JENKINS_UC_DOWNLOAD if specified #1299

Closed

Conversation

nhojpatrick
Copy link

To speed up testing plugins I setup a local web server with the plugins I was using. So I tried to get JENKINS_UC_DOWNLOAD working. Due to the current logic, if you specify JENKINS_UC_DOWNLOAD, it doesn't ever get used as JENKINS_UC_LATEST will get set 1st and always used.

Taking this example Dockerfile;

FROM jenkins/jenkins:lts
ENV JENKINS_UC_DOWNLOAD https://updates.jenkins.io/download
RUN /usr/local/bin/install-plugins.sh  greenballs

The current version will download from https://updates.jenkins.io/dynamic-2.319//latest/greenballs.hpi

The patched version will download from https://updates.jenkins.io/download/plugins/greenballs/latest/greenballs.hpi

  • Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or Jira
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Ensure you have provided tests - that demonstrates feature works or fixes the issue

@nhojpatrick nhojpatrick requested a review from a team as a code owner March 7, 2022 23:05
@MarkEWaite
Copy link
Contributor

I'd much rather that people switch to use the plugin installation manager tool (wrapped in the jenkins-plugin-cli.sh file) rather than make changes to the install-plugins.sh script. The script is deprecated and lacks features that are available in the replacement.

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.

We only accept changes to this script if it's completely broken.

Please switch to the plugin manager cli https://github.com/jenkinsci/plugin-installation-manager-tool

echo "WARN: install-plugins.sh is deprecated, please switch to jenkins-plugin-cli"

@nhojpatrick
Copy link
Author

I'm using a jenkins image provided by openshift and jenkins-plugin-cli is not packaged/avaliable but install-plugins.sh is. Also do most builds via openshift so never actually saw that WARN before your comment above.

For my reference where is jenkins-plugin-cli.sh/ps1 maintainered? So if submit a pr for RedHat, I point them to the root source to include in the offerings.

@nhojpatrick
Copy link
Author

Thanks for details @timja will see if I can sort out OpenShift's image stream.

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.

3 participants