Wait on a build to complete.

Use the Pipeline Snippet Generator to generate a sample pipeline script for the waitforBuild step.