jenkins the definitive guide

(Jeff_L) #1

a completely clean workspace, you can use the “Wipe out workspace” option to delete and rebuild the
workspace from the ground up. Bear in mind that this may significantly lengthen the time it takes to
initialize and build the project.


5.4.2.2.13. Choosing strategy


Jenkins decides which branches to build based on a strategy (see Figure 5.13, “Choosing strategy”).
Users can influence this branch-search process. The default choice is to search for all branch HEADs. If
the Gerrit plugin is installed, additional options for building all Gerrit-notified commits are displayed.


Figure 5.13. Choosing strategy


5.4.2.2.14. Git executable


In the global options of Jenkins (see Figure 5.14, “Git executable global setup”), different Git
executables can be set up and used on a per-build basis. This is infrequently used, and only when the
clone or other Git operations are highly sensitive to a particular version of Git. Git tends to be very
version-flexible; slightly older repositories can easily be cloned with a newer version of Git and vice-
versa.


Figure 5.14. Git executable global setup

Free download pdf