Open clemensutschig opened 4 years ago
@metmajer @michaelsauter - I know this is a big one, but also seeing tickets on premise around SQ .. we are seeing the pain of this...
@clemensutschig Interesting one! I like the idea, but I believe we need to think this through. A few notes:
OPENSHIFT_API_URL
is seeded and can't find it. It is only used when we clone whole envs, which is anyway a special beast. I believe oc whoami --show-server
gives a route to the URL, but it is not the internal address ...REPO_BASE
is probably not needed, but the value is also part of the location of the shared lib, and that we need otherwise Jenkins does not know where to pull fromods
)
Is your feature request related to a problem? Please describe. see context below : a lot of host / url related variables in jenkins master are only there because they are used by the shared lib. This is clutter that needs to be seeded and kept up2date with every release.
Describe the solution you'd like All routes of components we seed & are needed by the shared library are queried dynamically (we install these components, know their names and the namespace they are in), namely:
script.env.NEXUS_HOST
-> nexus routescript.env.OPENSHIFT_API_URL
-> oc get?script.SONAR_HOST_URL
-> sonar route ---- used also in the sq plugin registrationBITBUCKET_HOST
/`BITBUCKET_HOST
-> git origin url --- here there are several dependenciesREPO_BASE
-> git origin urlAdditional context related to opendevstack/ods-core#517