openshift / jenkins

Apache License 2.0
260 stars 446 forks source link

Can't install custom list of Plugins with jenkins-plugin-cli #1825

Open BeastHook opened 1 month ago

BeastHook commented 1 month ago

Hi, I am trying to add my own list of plugins in the image registry.redhat.io/ocp-tools-4/jenkins-rhel8:v4.14.0.

The way that would be easiest for me is as follows:

  1. create a new BuildConfig in Openshift
  2. stategy docker with inline dockerfile
  3. make the Plugins.txt available to the build via a ConfigMap
  4. install the plugins via the command RUN jenkins-plugin-cli -f path/plugins.txt

When using registry.redhat.io/ocp-tools-4/jenkins-rhel8:v4.14.0 as BaseImage I get the error that the command jenkins-plugin-cli is not found.

What is the best way to reach my target image within Openshift?

The container also requires a special version of Firefox. I would also like to install this in the Dockerfile. Is there anything against this?

Many thanks!