oc new-build –strategy=docker and custom Dockerfile

The oc new-build command does not accept the a custom dockerfilePath, here is how to workaround it.   oc new-build –code=https://github.com/akram/jenkins.git#test –context-dir=2 –strategy=docker oc patch bc jenkins -p ‘{ “spec” : { “strategy” : { “dockerStrategy” : { “dockerfilePath” : ” Dockerfile.localdev” }}, “source” : { “git” : { “ref” : “set-logging-format” }}}}’    Continue reading oc new-build –strategy=docker and custom Dockerfile