Breakpoint Provisioner
Type: breakpoint
The breakpoint provisioner will pause until the user presses "enter" to resume the build. This is intended for debugging purposes, and allows you to halt at a particular part of the provisioning process.
This is independent of the -debug
flag, which will instead halt at every step
and between every provisioner.
Basic Example
Configuration Reference
Optional
disable
(boolean) - Iftrue
, skip the breakpoint. Useful for when you have set multiple breakpoints and want to toggle them off or on. Default:false
note
(string) - a string to include explaining the purpose or location of the breakpoint. For example, you may find it useful to number your breakpoints or label them with information about where in the build they occur
Parameters common to all provisioners:
pause_before
(duration) - Sleep for duration before execution.max_retries
(int) - Max times the provisioner will retry in case of failure. Defaults to zero (0). Zero means an error will not be retried.only
(array of string) - Only run the provisioner for listed builder(s) by name.override
(object) - Override the builder with different settings for a specific builder, eg :In HCL2:
In JSON:
timeout
(duration) - If the provisioner takes more than for example1h10m1s
or10m
to finish, the provisioner will timeout and fail.
Usage
Insert this provisioner wherever you want the build to pause. You'll see ui output prompting you to press "enter" to continue the build when you are ready.
For example:
Once you press enter, the build will resume and run normally until it either completes or errors.