Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

oc new-app/oc new-build parameter for not auto triggering build process: oc new-(app|build) --suppress-build #22468

karstengresch opened this Issue Apr 3, 2019 · 0 comments


None yet
1 participant
Copy link

commented Apr 3, 2019

Problem description

When running oc new-app or oc new-build, this automatically triggers a build creation.
Especially Quarkus (and golang) tooling makes patching the BuildConfig necessary, see

Both waiting for the first build to fail (could take 15 mins or more) or combining oc create ... with && oc cancel-build (can fail if build hasn't started yet) aren't really useful approaches.

In the spirit of the abandoned #15429, I suggest adding a parameter


that just cancels the first build execution.

Alternatively, the documentation could be enhanced in a way that shows how to patch the build config with the create commands (if possible).



Steps To Reproduce

  1. Run e.g.

oc new-app{quickstarts-clone-url} --context-dir=getting-started --name=quarkus-quickstart-native

  1. Try to do this w/o triggering the build creation.

Current Result

You cannot prevent OCP from building.

Expected Result

You can disable the build trigger with a parameter.

Especially for a good Quarkus adoption this is IMHO a crucial topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.