Well, about debugging Jenkins plugins, I know that there is some information. I can tell you how I am debugging:
Using the tutorial from https://wiki.jenkins-ci.org/display/JENKINS/Plugin+tutorial#Plugintutorial-DebuggingaPlugin 1. Stop the Jenkins service 2. from cmd run set MAVEN_OPTS = -Xdebug -Xrunjdwp: transport = dt_socket, server y, address = 8000, suspend = n and also mvn hpi: run Note. Auto build must be disabled in Eclipse. And after running mvn hpi: run I am trying to connect Eclipse to a port using java remote (or something like this).
The second method I use: 1. I installed the maven plugin in eclipse 2. Create a startup configuration as maven in eclipse 3. Stop the jenkins server 4. Run the configuration 5. Access to localhost: 8080 / jenkins
Sorry for not giving the exact steps, but I have these configurations on my PC at work ...
In addition, in my opinion, the second method is more stable. I often use it when I work with my plugin ...
23ars
source share