Skip to content

Latest commit

 

History

History
37 lines (31 loc) · 1.26 KB

README.md

File metadata and controls

37 lines (31 loc) · 1.26 KB

jenkins-job-dsl-seed-all-demo

##Overview

Example of using a seed-all job with the Jenkins job DSL plugin

##Requirements

##Setup

  1. Create a new job
  2. Name it "Seed All"
  • can be anything, but must be same as contained in seed_all.groovy
  1. Choose "Freestyle project"
  2. Click "OK"
  3. Under "Source Code Management", choose "git"
  4. In "Repository URL", enter the URL of this repository
  5. Under "Build", click the "Add build step" drop-down and choose "Process Job DSLs"
  6. Select "Look on Filesystem"
  7. In "DSL Scripts", enter jobs/seed_all.groovy
  8. Click "Save"
  9. Click "Build now"
  • You should see a single job named "Seed All"
  1. Run the "Seed All" job
  • The job will pull in the remote repo and replace itself using the configuration defined in seed_all.groovy
  1. Return to the dashboard.
  • There should still only be a single job named "Seed All"
  1. Run the "Seed All" job ..* The job will run again and create a job named "Hello World"
  2. Refresh the view (of the Dashboard)
  • There should now be two jobs:
    • the original "Seed All" job
    • the new "Hello World" job