Instead of shelling out to the oc binary we might be better of using the DSL of https://github.com/openshift/jenkins-client-plugin. This plugin is already installed in the Jenkins master.
Thanks @oalyman for the suggestion.
One downside of using that plugin is that it is harder to try out changes - instead of being able to play with commands in the terminal, right now I don't see a way other than running a pipeline to experiment with the DSL.
Instead of shelling out to the
ocbinary we might be better of using the DSL of https://github.com/openshift/jenkins-client-plugin. This plugin is already installed in the Jenkins master.Thanks @oalyman for the suggestion.
One downside of using that plugin is that it is harder to try out changes - instead of being able to play with commands in the terminal, right now I don't see a way other than running a pipeline to experiment with the DSL.