opendevstack / ods-core

The core of OpenDevStack - infrastructure setup based on Atlassian tools, Jenkins, Nexus, SonarQube and shared images
Apache License 2.0
47 stars 34 forks source link

Restructure ods-core #870

Open clemensutschig opened 3 years ago

clemensutschig commented 3 years ago

Is your feature request related to a problem? Please describe. Ods-core has grown massively over the last releases - we should strive for a clean Structure so People quickly find their was thru

Describe the solution you'd like Retructure ods-core into a few functional buckets:

A) Components - nexus/jenkins/sonarqube/ods*services

B) move jenkins jobs underneath jenkins (https://github.com/opendevstack/ods-core/tree/master/jenkins/jobs)- away from the root

C) consolidate scripts, and and ods-devenv underneath ods-setup

clemensutschig commented 3 years ago

@michaelsauter thoughts?

renedupont commented 3 years ago

Additionally, it always feels weird that the jenkins-agent-base is in ods-core while all other specific jenkins agents are in ods-quickstarters. Is there a specific advantage of doing so?

michaelsauter commented 3 years ago

@renedupont This is because ods-quickstarters is just one repo container quickstarters. It's completely optional -you don't need to use it, you could just use custom quickstarters. However, the Jenkins agent base image should always be used, even by custom quickstarters, as it provides binaries without which the Jenkins Pipeline would fail (e.g. sonar-scanner). Therefore, the agent base image is part of ods-core.

Overall, I think consolidating a few things makes sense, but I would refrain from a big restructure. I don't see enough benefit. A couple of points that come to mind:

stitakis commented 3 years ago

Some housekeeping work is always good. I'd start with Michael suggested points and left more refactoring for later on. I assume adding support for openshift 4 will show where more restructuring/refactoring is needed.

michaelsauter commented 3 years ago

@stitakis Initially, OpenShift 4 support will not need to touch anything. Later on when we drop OpenShift 3.11 support and can rethink ODS from an "OpenShift 4 perspective", more things might change.

stitakis commented 3 years ago

@michaelsauter thanks for the feedback... did I get it right? Will ODS 4 support OpenShift 3.11 and Openshift 4?

michaelsauter commented 3 years ago

Yes that is the plan, and looks almost certain to be achievable.