How do you manually trigger a BuildConfig build from the CLI?

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

How do you manually trigger a BuildConfig build from the CLI?

Explanation:
Starting a BuildConfig build manually is done with the start-build command. This triggers a new build for the specified BuildConfig, kicking off the build pipeline defined by that BuildConfig. The syntax is to run oc start-build <bc-name>, with optional flags to customize or stream the build. This is the standard way to kick off a build from the CLI on demand. The other suggested commands don’t exist in the OpenShift CLI, so they wouldn’t start a BuildConfig build.

Starting a BuildConfig build manually is done with the start-build command. This triggers a new build for the specified BuildConfig, kicking off the build pipeline defined by that BuildConfig. The syntax is to run oc start-build , with optional flags to customize or stream the build. This is the standard way to kick off a build from the CLI on demand. The other suggested commands don’t exist in the OpenShift CLI, so they wouldn’t start a BuildConfig build.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy