I copied the *.java and *.css files from the [dark-theme-plugin](xttps://github.com/jenkinsci/dark-theme-plugin) into my project and adapted the *.java sources to my theme name. I left the *.css sources as they are. The build succeeds, the local Jetty starts in Eclipse/m2e and I can access the Jenkins instance in my browser. Since I didn’t change the CSS I expected to see Jenkins with the dark theme, but no.
Q1) What am I missing?
Q2) What to do next?
Q3) Is there any further dev documentation?
Q4) Where can I find a documentation for the theme.css to be able to create my own accordingly?
P.S.: “New users can only put 2 links in a post”? WT…?
My bad, it is. I was so annoyed by the msg “Our automated spam filter, Akismet, has temporarily hidden your topic.” that I didn’t remember that. Did you or can you promote me?
After changing to it Jenkins appears with the dark theme now. Thanks for the hint!
I don’t have a public remote repo for this yet. It’s just local for now.
The last commit doesn’t help me in my case (see below).
Thanks, I found further dev doc in the meantime.
I’d need infos about how to replace icons via a theme (I hate the new flat earthers edition so much that this is the igniting spark to write my first plugin after years of working with Jenkins and answering Jenkins-related questions on SO.). I thought this is done via CSS as well but I can’t find anything according in theme.less.
Thanks. That helped. Now there are further questions:
Q5) How to start the Jetty test instance with pre-defined config, like users, projects, plugins I’m relying on in my plugin, etc.?
Q6) How to change the HTTP port the test instance is runnig on.
Q5) How to start the Jetty test instance with pre-defined config, like users, projects, plugins I’m relying on in my plugin, etc.?
Is this JENKINS_HOME already on your machine? Then I would simply copy JENKINS_HOME locally and deploy your plugin to the copied instance (remove the old plugin from the plugin folder and replace it with the new version). It is possible to use mvn hpi:run as well (I don’t use it on my own).
Q6) How to change the HTTP port the test instance is runnig on.
This depends on how you start your Jenkins instance in general. I am using
I have one locally for testing general config, project’s config, answering SO questions, etc.
There is another one when developing that’s started with mvn hpi:run from within Eclipse (I don’t develop Java on the command line, of course.). I’m referring to this one which is rather “naked” by default.