Skip to content
Sam Gleske edited this page Feb 14, 2015 · 21 revisions

Welcome to the jervis wiki!

See the latest published Jervis API to assist with development.

There are currently two ways of using and configuring Jervis.

Development

To use Jervis to develop Jervis create a new freestyle project.

Check This build is parameterized and create a new text parameter named project. The project parameter will by used by firstjob.dsl.groovy.

Set the Source Code Management to Git and clone the Jervis project (or your version of it).

Add a new Build step called Process Job DSLs. Configure the following settings.

  • DSL Scripts - jobs/**/*.groovy
  • Action for existing jobs and views - Ignore Changes should be unchecked.
  • Action for removed jobs - Ignore
  • Action for removed views - Ignore
  • Advanced
    • Context to use for relative job names - Seed Job
    • Additional classpath - src/main/groovy

When building the job the project parameter is the GitHub namespace/project. In my case, I set it to samrocketman/jervis to generate a job for the Jervis project.

Production

Jervis is a library. If you're going to run it in production you should build it into a Jar and include it in your Jenkins Runtime classpath.

./gradlew build

Copy build/jervis.jar to your desired location.

Use your own DSL scripts and configs

Jervis comes with comprehensive sample seed jobs and configs.

Clone this wiki locally