Skip to content

Simplify repository component creation

This change greatly simplifies the way we create repositories, its sub-components and :snapshots

Primary reposiories, i.e. target, development, sdk, hmi are created by OBS in the clone step of release branching.

Then secondary repositories are created through this script for each of the primary repository. Secondary repositories are: backports, updates, security

Like: apertis:v2020:security:target

Then there's the Gitlab CI machinery, wherein we need :snapshots repository for each primary and secondary repository.

Like: apertis:v2020:target:snapshots
      apertis:v2020:security:target:snapshots

And under OBS meta definition we need to set the base repository chain in proper order.

Like: apertis:v2020:target:snapshots => apertis:v2020:target
apertis:v2020:security:target:snapshots => apertis:v2020:security:target
apertis:v2020:seucirty:target => apertis:v2020:target

This change takes care of all the criterias mentioned above.

Signed-off-by: Ritesh Raj Sarraf ritesh.sarraf@collabora.com

Tested locally with NOACT=y. Line 1 is the repository name and Line 2 is
the base repository name, in each respective paragraph

<project name="apertis:v2020pre2:target:snapshots">
    <path project="apertis:v2020pre2:target" repository="default"/>
</project>+++ osc meta prj apertis:v2020pre2:target:snapshots -F create-new-repo-template.txt

<project name="apertis:v2020pre2:security:target">
    <path project="apertis:v2020pre2:target" repository="default"/>
</project>+++ osc meta prj apertis:v2020pre2:security:target -F create-new-repo-template.txt

<project name="apertis:v2020pre2:security:target:snapshots">
    <path project="apertis:v2020pre2:security:target" repository="default"/>
</project>+++ osc meta prj apertis:v2020pre2:security:target:snapshots -F create-new-repo-template.txt

Merge request reports