question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Jenkins plugin manager rejects plugins.txt.override file

See original GitHub issue

We switched from install-plugins.sh to jenkins-plugin-manager in our Dockerfile and noticed that it doesn’t support specifying the plugins.txt.override file as a parameter.

$ java -jar /usr/lib/jenkins-plugin-manager.jar -f /usr/share/jenkins/ref/plugins.txt.override
Unknown file type, file must have .yaml/.yml or .txt extension

We worked around the issue like this for the time being:

$ java -jar /usr/lib/jenkins-plugin-manager.jar -p $(< /usr/share/jenkins/ref/plugins.txt.override)

I think it would still make sense to allow .override files in this case…

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jetersencommented, Nov 15, 2020

This paragraph is misplaced under https://github.com/jenkinsci/docker/#plugin-installation-manager-cli-preview which indeed has nothing to do with the plugins.txt file.

In case you do want to override, append ‘.override’ to the name of the reference file. E.g. a file named /usr/share/jenkins/ref/config.xml.override will overwrite an existing config.xml file in JENKINS_HOME.

1reaction
timjacommented, Nov 15, 2020

.override is only for config files not installing plugins

Read more comments on GitHub >

github_iconTop Results From Across the Web

Manage Jenkins Plugins Entirely with install-plugins.sh ...
txt file, performs two things: Adds a new plugin if it's present in plugins.txt and doesn't exist on the container. Upgrades a plugin...
Read more >
Jenkins version from 2.319.2 to 2.319.3 failed to load plugins
Hello, We are trying to run Jenkins with IS -Jenkins blueocean@sha256:9d6ebd661a2fdb0b9ab465c7ebf86141487845ca69893fa4953a33cca505414bq that ...
Read more >
Jenkins 2 override plugins.txt - Stack Overflow
I was using docker to create and run Jenkins. And in order to configure as immutable jenkins, we used to copy all xml...
Read more >
Hosting Plugins - Jenkins
We encourage plugin developers to host their plugins in the Jenkins community repositories on GitHub. This makes it easier for the community to ......
Read more >
How To Automate Jenkins Setup with Docker ... - DigitalOcean
JCasC makes use of the Configuration as Code plugin, which allows you to ... First, using your editor, create a new file named...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found