To trigger a new build for the build config named phpbuild, which command should you use?

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

To trigger a new build for the build config named phpbuild, which command should you use?

Explanation:
Starting a new build in OpenShift is done with the start-build command, which tells the platform to create a fresh build based on a specific BuildConfig. The name you pass is the BuildConfig to use, so to trigger a build for the BuildConfig named phpbuild, you would run oc start-build phpbuild. This uses the current BuildConfig’s settings and source to start the build. The other options don’t fit because they either reference a different build name, refer to a command that isn’t used for triggering builds, or are for creating new BuildConfigs rather than starting a build for an existing one.

Starting a new build in OpenShift is done with the start-build command, which tells the platform to create a fresh build based on a specific BuildConfig. The name you pass is the BuildConfig to use, so to trigger a build for the BuildConfig named phpbuild, you would run oc start-build phpbuild. This uses the current BuildConfig’s settings and source to start the build.

The other options don’t fit because they either reference a different build name, refer to a command that isn’t used for triggering builds, or are for creating new BuildConfigs rather than starting a build for an existing one.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy