Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Debugging a Plugin
  • start

    Start Jenkins and

    Sonar

    SonarQube plugin with embedded Jetty :

    Code Block
    
    mvn hpi:run
    

    For testing purposes you can also specify version of Jenkins, which is greater than version used for compilation :

    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.

...

  • Parent POM for Jenkins Plugins has been changed on org.jenkins-ci.plugins:plugin since Jenkins version 1.396
  • org.jvnet.hudson.tools:maven-hpi-plugin has been relocated to org.jenkins-ci.tools:maven-hpi-plugin since version 1.61
  • http://jieryn.livejournal.com/4664.html