jenkinsci / jenkinsfile-runner

A command line tool to run Jenkinsfile as a function
MIT License
1.13k stars 292 forks source link

jenkins/jenkinsfile-runner Docker Image can't evaluate Jenkins version #423

Open novettaberin opened 3 years ago

novettaberin commented 3 years ago

The Plugin Installation Manager Plugin that is part of the Docker image first attempts to check the version of the Jenkins war file so that it can find the latest compatible dependency for Jenkins Core and the plugins you are specifying.

The net result is that the Plugin Installation Manager Plugin assumes that the version of Jenkins is the most recent, which is not the case for the docker image. The problem that makes is that when I try to create my own Image with the plugins I need installed I get a problem with the workflow-basic-steps plugin. The install manager errors out saying that I need version 2.23 of that plugin, which is incompatible with the version of Jenkins in the jenkins/jenkinsfile-runner Docker Image.

Please fix the issue preventing that plugin from detecting the version of Jenkins in the docker image. Also, if possible, specify what version that should be.

oleg-nenashev commented 3 years ago

Yes, this is a legitimate defect. I was about fixing it in #324 by replacing the plugin manager by an embedded version, but I have not done it yet. I will see whether I could add an alternate solution

oleg-nenashev commented 3 years ago

https://github.com/jenkinsci/plugin-installation-manager-tool/pull/232 for the enhancement on the Plugin Installation Manager side that makes it possible

oleg-nenashev commented 3 years ago

@bericoberin I added the new Plugin Installation Manager version in the latest images (part of #449 ). Now you can use the version parameter to ensure the versions are considered. It would be great to automate detecting a proper version, but it requires a few extra patches.