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 support for a Jenkins version argument (CLI and env var) + Make Jenkins WAR parameter optional in the Plugin Manager Lib API and the implementation #232

Merged
merged 5 commits into from
Dec 1, 2020

Conversation

oleg-nenashev
Copy link
Member

This PR adds two enhancements which allow Plugin Installation Manager to check plugin version compatibility when no Jenkins WAR supplied. It addresses use-cases like the jenkinsfile Runner of in #193 (comment) and jenkinsci/jenkinsfile-runner#423

CC @timja @bericoberin

@oleg-nenashev oleg-nenashev added the enhancement New feature or request label Nov 23, 2020
README.md Outdated Show resolved Hide resolved
if (jenkinsVersion != null) {
return jenkinsVersion;
}
if (jenkinsWarFile != null) {
Copy link
Member

Choose a reason for hiding this comment

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

what do you think about moving this to the CLI? so the lib only works with a resolved jenkins version?

Copy link
Member Author

Choose a reason for hiding this comment

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

I do not think that Jenkins version is always needed for the library's logic. OTOH we could be more opinionated there

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.

👍

@oleg-nenashev oleg-nenashev changed the title Add support for a Jenkins version argument (CLI and env var) + @oleg-nenashev Make Jenkins WAR option in the Plugin Manager Lib API and the implementation Add support for a Jenkins version argument (CLI and env var) + Make Jenkins WAR option in the Plugin Manager Lib API and the implementation Nov 23, 2020
@oleg-nenashev oleg-nenashev changed the title Add support for a Jenkins version argument (CLI and env var) + Make Jenkins WAR option in the Plugin Manager Lib API and the implementation Add support for a Jenkins version argument (CLI and env var) + Make Jenkins WAR parameter optional in the Plugin Manager Lib API and the implementation Nov 23, 2020
@oleg-nenashev
Copy link
Member Author

Is it good to go now @timja, maybe towards 2.3.0?

@timja
Copy link
Member

timja commented Nov 30, 2020

go for it.

@oleg-nenashev oleg-nenashev merged commit 0adab4b into jenkinsci:master Dec 1, 2020
@psaini0212
Copy link

psaini0212 commented Feb 10, 2021

Hello, @timja @oleg-nenashev the latest LTS release of Jenkins i.e. 2.263.4 still got v2.2.0 of plugin-installation-manager-tool. This is from the docker file - ARG PLUGIN_CLI_URL=https://github.com/jenkinsci/plugin-installation-manager-tool/releases/download/2.2.0/jenkins-plugin-manager-2.2.0.jar
Do we know when the fixed/recent (having the above fix) will get baked in the Jenkins official image or is there a way I can bake it into that myself? pls guide

@timja
Copy link
Member

timja commented Feb 10, 2021

create a new issue next time, it's being updated in jenkinsci/docker#1073

@jenkinsci jenkinsci locked as off-topic and limited conversation to collaborators Feb 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants