Comments (7)
@nennete - just to confirm, by installing manually, you mean navigate to Manage Jenkins -> Global Tool Configuration -> and find the "OpenShift Client Tools" section, correct?
from jenkins-client-plugin.
Pending confirmation on my question to @nennete , enhancing the "jenkins outside of openshift" scenario so that the oc
binary is automatically pulled in, the only possible solutions that come to my mind are:
-
have the plugin automatically generate "Global Tool Configuration -> OpenShift Client Tools" config on startup such that the oc binary will be placed in the existing path of the Jenkins server ... seems problematic to me on several fronts, where you have to either make assumptions on the path, or you have to make the location configurable (which breaks the "doing it automatically" premise), or you have to update the path in your pipeline script as already discussed in the readme. Of course which version of
oc
to pull in has similar concerns. Also, the config format for the global tool config is not public or standardized per se -
have the plugin package the
oc
binary in its hpi file, and then again have to copy it to somewhere on the path, manage the path, etc.
Seems like a non-starter or low priority (where perhaps is better to wait and see if upstream jenkins further enhances how to introduce binary tools, or expands the global library support somehow to facilitate this).
@bparees @jupierce - thoughts ?
from jenkins-client-plugin.
agree w/ what you said. we definitely don't want to package the oc binary inside the plugin.
from jenkins-client-plugin.
@gabemontero - What I did, it was to install the plugin directly through Jenkins (here in repo you recommend to build the project locally and install it manually, instead).
My Jenkins lives in different machine than Openshift.
Then, the Jenkins job which leverages Openshift commands threw an exception saying something like: oc command not found
. Sorry, I had to revert the plugin so I cannot post any screenshot.
Therefore, I reckon it is useful to, somehow, let the plugin also install the oc
client in case there is no installation already.
from jenkins-client-plugin.
OK, thanks for the update @nennete - so I'm taking from you response that you did NOT employ the "Global Tool Configuration -> OpenShift Client Tools" configuration path ... i.e. the instructions at https://github.com/openshift/jenkins-client-plugin#setting-up-jenkins-nodes
Setting up the binary in that fashion, or using the openshift jenkins image, is certainly a prereq, as noted at the top of the repo's readme at https://github.com/openshift/jenkins-client-plugin#overview
As I mentioned above, I don't see us "automatically" installing the oc
binary in the "jenkins outside of the openshift jenkins image" scenario at this time.
You are correct that https://github.com/openshift/jenkins-client-plugin#installing is out of date. The plugin is available at the jenkins update center. I'll update the README momentarily.
from jenkins-client-plugin.
readme at https://github.com/openshift/jenkins-client-plugin updated re: how to install
the analogous readme at https://github.com/jenkinsci/openshift-client-plugin will get updated the next time we cut a new release.
from jenkins-client-plugin.
We've finished our review, and will not be moving forward at this time with having the client plugin automatically install the oc
binary when running outside of the openshift image. There is no easy, clean, safe way to do it, and using Jenkins' "Global Tool configuration" to manually install binaries like this is the preferred option from a general Jenkins perspective.
Thanks for the interest.
from jenkins-client-plugin.
Related Issues (20)
- Plugin incompatible with new-style clouds configuration. HOT 5
- Error after Warning HOT 7
- Can't get api token from com.openshift.jenkins.plugnis.OpenShiftTokenCredentials in pipeline HOT 5
- List of DSL methods required HOT 3
- Error to parse POM's HOT 4
- 'restart' subcommand is missing for rollout()
- Support current version of oc tool HOT 4
- Plugin installation broke credentials used by other plugins HOT 12
- Argument was classified as an image, image~source, or loaded template reference but should be git repo HOT 7
- Leftover oc processes after wait() calls HOT 7
- Plugin doesn't detect capabilities (--ignore-not-found) from recent OC versions HOT 8
- No credentials shown in cluster configuration dropdown HOT 6
- Job fails if there are spaces in the project name, using raw command HOT 9
- Error flags cannot be placed before plugin name on external Jenkins declarative pipeline HOT 2
- Unable to retrieve object names using kubernetes-plugin sidecar container HOT 5
- java.nio.file.NoSuchFileException after upgrade to 1.0.37 HOT 5
- Certificate options not escaped HOT 5
- stdout and stderr not correctly splited when running with kubernetes plugin
- Future Release Branches Frozen For Merging | branch:release-4.16 branch:release-4.17
- stdout and stderr not correctly splitted when running with kubernetes plugin (2)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jenkins-client-plugin.