In OpenShift, which command starts a new build for the given build configuration named "name"?

Prepare for the Red Hat OpenShift Developer II DO288 Exam with our quizzes. Study with flashcards and multiple choice questions, each with hints and explanations. Get ready for your certification!

Multiple Choice

In OpenShift, which command starts a new build for the given build configuration named "name"?

Explanation:
Starting a new build for an existing BuildConfig is done by triggering a build for that configuration. The command to do this is to run start-build with the BuildConfig name, which creates a new Build object from the BuildConfig and begins the build process. For example: oc start-build name. You can add --follow to stream the build logs as it runs. Other options don’t fit the operation: starting a build queue isn’t a standard OpenShift CLI command; creating a new BuildConfig from source is done with a different command (new-build), which sets up the configuration rather than triggering a new build; and there isn't a valid oc build start command in the common CLI tooling.

Starting a new build for an existing BuildConfig is done by triggering a build for that configuration. The command to do this is to run start-build with the BuildConfig name, which creates a new Build object from the BuildConfig and begins the build process. For example: oc start-build name. You can add --follow to stream the build logs as it runs.

Other options don’t fit the operation: starting a build queue isn’t a standard OpenShift CLI command; creating a new BuildConfig from source is done with a different command (new-build), which sets up the configuration rather than triggering a new build; and there isn't a valid oc build start command in the common CLI tooling.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy