Which command starts a build for an application?

Prepare for the Red Hat Openshift Developer EX288 Exam. Study with comprehensive quizzes and flashcards. Each question includes hints and explanations to enhance your understanding. Ace your exam with confidence!

Multiple Choice

Which command starts a build for an application?

Explanation:
Starting a build in OpenShift is done with the start-build command. This is the direct action that tells the cluster to kick off a new build for a BuildConfig. The base form oc start-build represents that trigger. If you already know the specific BuildConfig (for example, the app’s BuildConfig name), you can target it explicitly by adding that name (oc start-build myapp). The --watch option simply streams the build logs as it runs, and oc build-start isn’t a valid OpenShift CLI command. So the most general and correct command to initiate a build is oc start-build.

Starting a build in OpenShift is done with the start-build command. This is the direct action that tells the cluster to kick off a new build for a BuildConfig. The base form oc start-build represents that trigger. If you already know the specific BuildConfig (for example, the app’s BuildConfig name), you can target it explicitly by adding that name (oc start-build myapp). The --watch option simply streams the build logs as it runs, and oc build-start isn’t a valid OpenShift CLI command. So the most general and correct command to initiate a build is oc start-build.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy