Debugging a Plugin
- start Jenkins and Sonar plugin with embedded Jetty :
For testing purposes you can also specify version of Jenkins, which is greater than version used for compilation :Code Block mvn hpi:run
Code Block mvn hpi:run -Dhudson.version=1.351
- browse to http://localhost:8080
- Jetty automatically detects compilation updates then restarts. Very useful.
Release
| Warning |
|---|
Outdated info |
- edit the file ~/.java.net :
Code Block userName=[java.net username] password=[java.net password]
- tag subversion and upload the release:
Code Block $ cd plugins $ mvn -N install $ cd sonar $ mvn release:prepare release:perform -Dusername=[java.net username] -Dpassword=[java.net password]
- add the changelog to release notes.
Notes
- Parent POM for Jenkins Plugins has been changed on
org.jenkins-ci.plugins:pluginsince Jenkins version 1.396 org.jvnet.hudson.tools:maven-hpi-pluginhas been relocated toorg.jenkins-ci.tools:maven-hpi-pluginsince version 1.61- http://jieryn.livejournal.com/4664.html

