Skip to content

bitwiseman/jenkins-job-dsl-seed-all-demo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Groovy 100.0%