-
Notifications
You must be signed in to change notification settings - Fork 45
Quickstart
This is meant to get you up and running real quick to see what Jervis is like and it's stage of development. Please note: due to the nature of this quickstart it's not recommended that you build anything because you won't have prerequisites or slaves hooked up. This is meant to solely show of how Jervis generates jobs.
On a Linux machine open a terminal.
cd ~/Downloads
wget http://mirrors.jenkins-ci.org/war/latest/jenkins.war
mkdir jervis-test
JENKINS_HOME=./jervis-test java -jar jenkins.warJenkins should now be running on http://localhost:8080/. Install plugins by going to Manage Jenkins > Manage Plugins > Available. The following plugins need to be installed at a minimum.
- Job DSL Plugin
- Cloudbees Folders Plugin
- GitHub Plugin
- View Job Filters Plugin
- PostBuildScript Plugin
You'll need to restart the server. In the terminal type Ctrl+C to shut the server down. Then start the server again.
JENKINS_HOME=./jervis-test java -jar jenkins.war
Once you have the plugins installed you need to create a new project. This project will be called a seed job because it will be used to create all other jobs.
- On the home page, in the menu click New Item > Freestyle project. Call the job
_jervis_generator. - Check
This build is parameterizedand create a new text parameter namedproject. Set the value tosamrocketman/jervis. - Set the Source Code Management to
Gitand to clone:https://github.com/samrocketman/jervis.git - Add a new
Buildstep calledExecute shelland make the contents./gradlew libs. This will assemble libraries into the workspace which Jervis Job DSL scripts will make use in the classpath. - Add a new
Buildstep calledProcess Job DSLs. Configure the following settings.
- Execute scripts on the filesystem.
- DSL Scripts -
jobs/**/*.groovy - Action for existing jobs and views -
Ignore Changesshould be unchecked. - Action for removed jobs -
Ignore - Action for removed views -
Ignore - Advanced
-
Context to use for relative job names -
Seed Job -
Additional classpath - set it to multiline with the following:
src/main/groovy lib/*.jar
-
- Save your new job.
- Build overview
- Supported languages
- Supported build tools
- Publish results
- Additional topics:
- Quickstart
- Background information
- Knowledge checklist
- Required Jenkins Plugins
- Labels for Jenkins Agents
- Key security concepts
- Operationalize Jenkins
- High availability
- Disaster recovery
- Pipeline support
- Extending support