• If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • Stop wasting time looking for files and revisions. Connect your Gmail, DriveDropbox, and Slack accounts and in less than 2 minutes, Dokkio will automatically organize all your file attachments. Learn more and claim your free account.


Hot Deploy Jenkins-Testswarm Plugin

Page history last edited by jobara 8 years, 5 months ago

This is a quick guide for "Hot Deploying" the Jenkins-Testswarm plugin for testing.




The following applications should be installed:




Step 1: Install Jenkins


Follow the steps on Installing Jenkins, for your particular operating system.


NOTE: This step is not needed Hot-Deploying the plugin, as an instance of Jenkins will be fetched by Maven and launched during deployment. This is, however, needed for running it standalone.



Step 2: Checkout the Jenkins-Testswarm plugin


Using GIT, clone the Jenkins-Testswarm plugin to the desired location on your system.



git clone https://github.com/appendto/jenkins-testswarm.git 



Step 3: Adjust Maven Settings


Using the configuration from Setting up Environment, update the .m2/.settings.xml file.



  • If you have just installed maven and don't yet have an .m2 directory, you can run mvn install from anywhere on the command line. This will create it for you.
  • If you don't have a .settings.xml file, you can just create one with the configuration mentioned above.
  • You might also want to add mirrors, in case any of the main repositories in the pom.xml file are down.












Step 4: Eclipse


Install m2eclipse


The m2eclipse plugin is able to create Eclipse projects from maven pom.xml files. 


  1. Open Eclipse
  2. Help > Install New Software ...
  3. Click "Add.."
    1. Enter a name for the plugin repository (e.g. m2eclipse) 
    2. Enter the location:
      1. http://download.eclipse.org/technology/m2e/releases 
      2. for eclipse 3.5.2 use, http://m2eclipse.sonatype.org/sites/m2e
  4. Click "OK" 
  5. Select the Plugins to install and Click "Next"
  6. Continue following the prompts until installation is complete, and restart Eclipse 


Create an Eclipse Project


Use the m2eclipse plugin to create an Eclipse project straight from the pom.xml file of the Jenkins-Testswarm plugin.


  1. Open Eclipse
  2. File > Import >Maven > Existing Maven Projects
  3. Click "Browse..."
  4. Choose the Jenkins-Testswarm clone you made in Step 2
  5. The pom.xml should show up under Projects, Click "Finish"
  6. A new Eclipse project should have been created called testwarmbuilder


Hot Deploy / Debug


For testing purposes it is much easier to Hot Deploy the plugin to Jenkins, rather than having to manually build and install the plugin each time.


  1. Open Eclipse
  2. Ensure that testswarmbuilder is the selected project 
  3. From the toolbar or context sensitive menu select Debug As > Maven Build
  4. Under the "Main" tab set the "Goals" to hpi:run 
  5. Under the "Environment" tab create a new variable
    1. Click "New..."
    2. Set "Name" to MAVEN_OPTS
    3. Set "Value" to "-Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=8000,suspend=n"
    4. Click "OK"
  6. Click "Debug"
  7. A Jenkins instance with the plugin installed, should have been launched. In your web browser, navigate to your Jenkins instance to continue testing. 



  • After creating the Eclipse project, a background task to download Maven dependencies may start. Make sure to let all of the downloads complete.
  • Debugging will attempt to load Jenkins on port 8080, if you already have an instance running there, you should stop it before debugging.
  • On Ubuntu, if you ran the installation from Step 1, Jenkins is installed as a service that launches on OS load. You can control the service with the following commands:
    • sudo service jenkins stop
    • sudo service jenkins start
    • sudo service jenkins restart 




Comments (0)

You don't have permission to comment on this page.