Skip to content

Commit

Permalink
Fix release_minor value in project.ini
Browse files Browse the repository at this point in the history
The correct value for release_minor is the rhos-release version
i.e. for RHOS-18.0. it is 18.0.

The default value is 0[1].

Links:
[1]. https://github.com/rdo-infra/ansible-role-dlrn/blob/bd748446b62d42d171d6ace179d3f1f39ff36319/templates/projects.ini.j2#L35

Signed-off-by: Chandan Kumar (raukadah) <raukadah@gmail.com>
  • Loading branch information
raukadah authored and frenzyfriday committed Jan 31, 2025
1 parent 6295c4e commit f34a7e6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions roles/build_openstack_packages/templates/projects.ini.j2
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,11 @@ use_components={{ cifmw_bop_use_components }}
# There default values are `0.date.hash` and `0` respectively.
# We are only setting these for downstream case when cifmw_bop_osp_release
# is defined. For downstream case, we are hardcoding release_numbering=minor.date.hash
# and then just set the release_minor value based on the OSP version
# (e.g. 0 for 18/18.0, 1 for 18.1, 2 for 18.2 etc).
# and then just set the release_minor value based on the OSP version.
# (e.g. 18.0 for rhos-18.0).
# The default value is 0.
release_numbering=minor.date.hash
release_minor={{ '0' if '.' not in cifmw_bop_osp_release.split('-')[1] else cifmw_bop_osp_release.split('-')[1].split('.')[1] }}
release_minor={{ cifmw_bop_osp_release.split('-')[1] | default('0') }}
nonfallback_branches=^master$,^rpm-master$,^rhos-
custom_preprocess={{ cifmw_bop_build_repo_dir }}/DLRN/scripts/set_nvr.sh,{{ cifmw_bop_build_repo_dir }}/DLRN/scripts/patch_rebaser.sh

Expand Down

0 comments on commit f34a7e6

Please sign in to comment.