Skip to content

Instantly share code, notes, and snippets.

@dasgoll
Created November 6, 2018 15:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dasgoll/f6fdbbfe37b4f47cc630054dd2817619 to your computer and use it in GitHub Desktop.
Save dasgoll/f6fdbbfe37b4f47cc630054dd2817619 to your computer and use it in GitHub Desktop.
execute a Jenkins job from inside another job - Pass parameters
execute a job from inside another job
Add build step -> Trigger/call builds on other projects
Check "Block until the triggered projects finish their builds"
Add Parameters -> Predefined parameters
in "Predefined parameters":
GIT_REPO=$git_repo <-- this $git_repo is a defined paramter in the calling job
GIT_OUTPUT=/opt/policyengine
CHEF_JSON=policyengine.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment