Skip to content
This repository was archived by the owner on Jan 18, 2024. It is now read-only.
leroyjenkinsplugin edited this page Jul 29, 2014 · 27 revisions

Introduction

Installation

Setup Controller

  1. Install Leroy plugin
  2. Go into nodes and choose a node that you want to act as your controller. The controller is the staging area where the deployment occurs. Choose [X] Leroy controller and enter a path you want to install leroy. Choose the platform of your node and click update. This will automatically update / install the latest release of leroy to the target folder you specified.
  3. Add agents for each host in your first environment
  4. Add environments and place agents in each environment appropriately.
  5. Assign / create roles for each host in each environment.

Check Leroy project into SCM

  1. Create the following folders: commands, workflows, properties, resources
  2. Create file: commands/test.sh or command/test.bat inside put: echo this works!
  3. Create file: workflows/test.xml add: <workflow><execute command="test.sh" /></workflow>
  4. Commit files to SCM

Create new "Leroy Deployment Job"

  1. Click "New Item"
  2. Enter: item name
  3. Choose: "Leroy Deployment Job"
  4. Under "Source Code Management" enter the location where you committed your files to your SCM. Save the job and reload the configurations page.
  5. You should see workflow test and environments listed in "Leroy Target Configurations", choose the workflow and environment you just created, click save.
  6. Ensure that agents are running on each of the hosts in your environment. zip bundles for each agent are created on the node in LEROY_HOME/ for each agent you've created. SSH install will copy these files for you but does not start the agent, nor ensure it runs on boot. You'll have to do this on your own for now.
  7. Deploy

Clone this wiki locally