Which command starts a build for a specific buildconfig named myjava?

oc start-build myjava

To trigger a new build for a specific BuildConfig, you specify the BuildConfig name as the argument to the command. Saying oc start-build myjava tells OpenShift to start a new build using the BuildConfig named myjava in your current project. The BuildConfig defines how the image should be built, so giving its name directly identifies exactly which build to run.

You can add flags like --watch (or -w) to stream the build logs as it runs, but the essential part is providing the BuildConfig name. Without naming the BuildConfig, the command wouldn’t know which build to start, and options like --name or omitting the name don’t specify the target BuildConfig in the same direct way.

oc start-build

oc start-build --name myjava

oc start-build myjava --watch

Want more questions?

All options are one-time payments.

$25.99

30 day premium pass

All the basics to get you started

  • Ad-free experience
  • View your previous attempt history
  • Mobile app access
  • In-depth explanations
  • 30 day premium pass access
$59.99 $171.99 usd

6 month DELUXE pass (most popular)

Everything with the 30 day premium pass FOR 6 MONTHS! & the ultimate digital PDF study guide (BONUS)

  • Everything included in the premium pass
  • $171.99 usd value for $59.99! You save $106!
  • + Access to the ultimate digital PDF study guide
  • + 6 months of premium pass access
  • + Priority support
$15.99 $24.99

Ultimate digital PDF study guide

For those that prefer a more traditional form of learning

  • Available for instant download
  • Available offline
  • Hundreds of practice multiple choice questions
  • Comprehensive content
  • Detailed explanations
Image Description
Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy