opendevstack / ods-jenkins-shared-library

Shared Jenkins library which all ODS projects & components use - provisioning, SonarQube code scanning, Nexus publishing, OpenShift template based deployments and repository orchestration
Apache License 2.0
73 stars 57 forks source link

Remove ODS component hosts/urls needed by shared lib(s) and replace by dynamic OC lookup #338

Open clemensutschig opened 4 years ago

clemensutschig commented 4 years ago

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:

  1. script.env.NEXUS_HOST -> nexus route
  2. script.env.OPENSHIFT_API_URL -> oc get?
  3. script.SONAR_HOST_URL -> sonar route ---- used also in the sq plugin registration
  4. BITBUCKET_HOST / `BITBUCKET_HOST -> git origin url --- here there are several dependencies
  5. REPO_BASE -> git origin url

Additional context related to opendevstack/ods-core#517

clemensutschig commented 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...

michaelsauter commented 4 years ago

@clemensutschig Interesting one! I like the idea, but I believe we need to think this through. A few notes: