-
Notifications
You must be signed in to change notification settings - Fork 52
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
openshiftBuild should support binary build type. #165
Comments
Thanks for the interest @etsauer , but we are not taking on new enhancements for this plugin, as https://github.com/openshift/jenkins-client-plugin is now our strategic direction for openshift/jenkins integration from pipelines. You can in fact perform binary builds with the |
Thanks @gabemontero - I know this is close, but it is not clear how to push a binary image (--from-file) through the openshift Jenkins plugin using 'openshift.startBuild(...)'. please elaborate. |
@glenns1 use existing pipeline function like https://jenkins.io/doc/pipeline/steps/pipeline-utility-steps/#code-findfiles-code-find-files-in-the-workspace to find the binary file in your pipeline's workspace to find the fully qualified path of your binary file. Supply the right path as the value for |
@gabemontero Thanks for this feedback. I tried running that command, but not clear on the syntax and was failing. if you have an example with the --from-file option for a start build equivalent please? |
how about providing exactly what you tried @glenns1 and I'll modify it as needed |
Thanks @gabemontero This is what I use for pipeline script: node(label 'ocpmaster' |
hi @gabemontero |
@glenns1 how did you take the file gathering above and supply it to the Can you supply that syntax as well, and any error logs that may have occurred when you try it. Lastly, are you famiilar with binary builds in general ... are you able to do them from the command line via the Also, sorry, but I want to keep the discussion here, for other's benefits, including some new devs for the client plugin function. @waveywaves fyi ^^ |
Hi @gabemontero I am familiar with and using the binary builds. I currently use this: But I wish to run it in a Jenkins pipeline: Therefore, I require the --from-file option, which is how I got to needing: The error from running this stage: Thanks |
@glenns1 ok we may not be on the same page here. Earlier you mentioned We are not adding support for binary builds in this plugin. Did you try it with the client-plugin? Can you provide the pipeline code and full log results when you tried it using the client plugin? |
Many pipelines use openshift to simply deploy a jar/war/ear from the workspace to an s2i-enabled image. It would be nice to be able to use the pipeline plugin methods to do this rather than have to drop into the shell for a simple
oc start-build foo --from-file/--from-dir
command.The text was updated successfully, but these errors were encountered: