Git Product home page Git Product logo

jenkins-job-dsl-seed-all-demo's Introduction

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
  3. Choose "Freestyle project"
  4. Click "OK"
  5. Under "Source Code Management", choose "git"
  6. In "Repository URL", enter the URL of this repository
  7. Under "Build", click the "Add build step" drop-down and choose "Process Job DSLs"
  8. Select "Look on Filesystem"
  9. In "DSL Scripts", enter jobs/seed_all.groovy
  10. Click "Save"
  11. Click "Build now"
    • You should see a single job named "Seed All"
  12. Run the "Seed All" job
    • The job will pull in the remote repo and replace itself using the configuration defined in seed_all.groovy
  13. Return to the dashboard.
    • There should still only be a single job named "Seed All"
  14. Run the "Seed All" job
    • The job will run again and create a job named "Hello World"
  15. Refresh the view (of the Dashboard)
    • There should now be two jobs:
      • the original "Seed All" job
      • the new "Hello World" job

jenkins-job-dsl-seed-all-demo's People

Contributors

robinbowes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

jenkins-job-dsl-seed-all-demo's Issues

ERROR: script not yet approved for use

This is the output when I followed the setup.

Started by user admin
Building in workspace /var/jenkins_home/workspace/Seed All
Cloning the remote Git repository
Cloning repository https://github.com/robinbowes/jenkins-job-dsl-seed-all-demo
 > git init /var/jenkins_home/workspace/Seed All # timeout=10
Fetching upstream changes from https://github.com/robinbowes/jenkins-job-dsl-seed-all-demo
 > git --version # timeout=10
 > git fetch --tags --progress https://github.com/robinbowes/jenkins-job-dsl-seed-all-demo +refs/heads/*:refs/remotes/origin/*
 > git config remote.origin.url https://github.com/robinbowes/jenkins-job-dsl-seed-all-demo # timeout=10
 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
 > git config remote.origin.url https://github.com/robinbowes/jenkins-job-dsl-seed-all-demo # timeout=10
Fetching upstream changes from https://github.com/robinbowes/jenkins-job-dsl-seed-all-demo
 > git fetch --tags --progress https://github.com/robinbowes/jenkins-job-dsl-seed-all-demo +refs/heads/*:refs/remotes/origin/*
 > git rev-parse refs/remotes/origin/master^{commit} # timeout=10
 > git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10
Checking out Revision 1d42dd050fcff28495469a07d696219af6bb2602 (refs/remotes/origin/master)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 1d42dd050fcff28495469a07d696219af6bb2602
Commit message: "Add sample scripts and update README"
First time build. Skipping changelog.
Processing DSL script seed_all.groovy
ERROR: script not yet approved for use
Finished: FAILURE

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.