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
72 stars 57 forks source link

RM (to DEV) fails with one component containing multiple deployment(s)means #981

Closed albertpuente closed 1 year ago

albertpuente commented 1 year ago

Describe the bug Due to the changes introduced in a previous release, the mono repository configuration cannot deploy more than one DeploymentConfig.

https://github.com/opendevstack/ods-jenkins-shared-library/blob/63d3fa0435721cfc0bb9f21f24d15227784f27d7/src/org/ods/orchestration/phases/FinalizeOdsComponent.groovy#L145

To Reproduce Steps to reproduce the behavior:

  1. Try to release a repository with more than one deploymentConfig.
  2. See error: `java.lang.RuntimeException: Found more than 1 Deploymentmeans 2 for repo database. This is not supported``

Expected behavior A clear and concise description of what you expected to happen.

Affected version (please complete the following information):

Additional context Having multiple dcs in one component used to work in the datascience qs.