Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

10. Advanced Builds > Parameterized Triggers

Parameterized Triggers

When you trigger another build job from within a parameterized build job, it is often useful to be able to pass the parameters of the current build job to the new one. Suppose, for example, that you have an application that needs to be tested against several different databases. As we have seen, you could do this by setting up a parameterized build job that accepts the target database as a parameter. You may want to kick of a series of builds, all of which will need this parameter.

If you try to do this using the conventional “Build other projects” option in the Post-Build Actions section, it won’t work. In fact, you can’t trigger a parameterized build in this way.

However, you can do this using the Jenkins Parameterized Trigger plugin. This plugin lets you configure your build jobs to both trigger parameterized builds, and to pass arbitrary parameters to these builds.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint