Nova Resource:Integration/Jenkins Plugin

From Wikitech
Jump to navigation Jump to search
  • Machine
    • Create Ubuntu Precise instance, e.g. integration-dev-precise (because Jenkins runs on gallium which runs Precise)
  • Source code
    • Set up a directory with the source code
    • $ cd ~
    • $ git clone git@github.com:wikimedia/git-client-plugin.git&& cd git-client-plugin
    • $ git checkout git-client-1.4.6+wmf1
  • Dependencies
    • $ sudo apt-get install maven (Jenkins plugins need Maven 3.x)
    • $ sudo apt-get install default-jdk (mvn install threw "Could not find artifact com.sun:tools:jar:1.5 at specified", because by default we ship JRE instead of JDK.)
  • Build
    • $ cd path/to/jenkins-plugin-source
    • $ mvn install
  • Deploy

References