@@ -68,11 +68,14 @@ get_vrel_from_rpm() {{
6868 echo " "
6969}}
7070
71- # The current release minor version (e.g. '17' for '4.17') affects
71+ # The current release version (e.g. '4.17') affects
7272# the definition of previous and fake next versions.
73+ export MAJOR_VERSION={major_version}
7374export MINOR_VERSION={minor_version}
74- export PREVIOUS_MINOR_VERSION=$(( "${{MINOR_VERSION} }" - 1 ))
75- export YMINUS2_MINOR_VERSION=$(( "${{MINOR_VERSION} }" - 2 ))
75+ export PREVIOUS_MAJOR_VERSION={previous_major_version}
76+ export PREVIOUS_MINOR_VERSION={previous_minor_version}
77+ export YMINUS2_MAJOR_VERSION={yminus2_major_version}
78+ export YMINUS2_MINOR_VERSION={yminus2_minor_version}
7679export FAKE_NEXT_MINOR_VERSION=$(( "${{MINOR_VERSION} }" + 1 ))
7780
7881# For a main branch, the current release repository usually comes from
@@ -110,27 +113,34 @@ YMINUS2_RELEASE_VERSION="{yminus2_release_version}"
110113export YMINUS2_RELEASE_REPO
111114export YMINUS2_RELEASE_VERSION
112115
113- # The 'rhocp_minor_y' variable should be the minor version number, if the
114- # current release is available through the 'rhocp' stream, otherwise empty.
116+ # The 'rhocp_major_y' and 'rhocp_minor_y' variables should be the major and minor
117+ # version numbers, if the current release is available through the 'rhocp' stream,
118+ # otherwise empty.
119+ RHOCP_MAJOR_Y={rhocp_major_y}
115120RHOCP_MINOR_Y={rhocp_minor_y}
116121# The beta repository, containing dependencies, should point to the
117122# OpenShift mirror URL. If the mirror for current minor is not
118123# available yet, it should point to an older release.
119124RHOCP_MINOR_Y_BETA=" {rhocp_minor_y_beta}"
125+ export RHOCP_MAJOR_Y
120126export RHOCP_MINOR_Y
121127export RHOCP_MINOR_Y_BETA
122128
123- # The 'rhocp_minor_y' variable should be the previous minor version number, if
124- # the previous release is available through the 'rhocp' stream, otherwise empty.
129+ # The 'rhocp_major_y1' and 'rhocp_minor_y1' variables should be the previous major
130+ # and minor version numbers, if the previous release is available through the
131+ # 'rhocp' stream, otherwise empty.
132+ RHOCP_MAJOR_Y1={rhocp_major_y1}
125133RHOCP_MINOR_Y1={rhocp_minor_y1}
126134# The beta repository, containing dependencies, should point to the
127135# OpenShift mirror URL. The mirror for previous release should always
128136# be available.
129137RHOCP_MINOR_Y1_BETA=" {rhocp_minor_y1_beta}"
138+ export RHOCP_MAJOR_Y1
130139export RHOCP_MINOR_Y1
131140export RHOCP_MINOR_Y1_BETA
132141
133- # The 'rhocp_minor_y2' should always be the y-2 minor version number.
142+ # The 'rhocp_major_y2' and 'rhocp_minor_y2' should always be the y-2 version numbers.
143+ export RHOCP_MAJOR_Y2={rhocp_major_y2}
134144export RHOCP_MINOR_Y2={rhocp_minor_y2}
135145
136146export CNCF_SONOBUOY_VERSION={CNCF_SONOBUOY_VERSION}
@@ -142,12 +152,12 @@ export CNCF_SYSTEMD_LOGS_VERSION={CNCF_SYSTEMD_LOGS_VERSION}
142152export GITOPS_VERSION={GITOPS_VERSION}
143153
144154# The brew release versions needed for release regression testing
145- BREW_Y0_RELEASE_VERSION=" $( get_vrel_from_rpm " ${{BREW_RPM_SOURCE} }/4 .${{MINOR_VERSION} }-zstream/{ARCH}/" ) "
146- BREW_Y1_RELEASE_VERSION=" $( get_vrel_from_rpm " ${{BREW_RPM_SOURCE} }/4 .${{PREVIOUS_MINOR_VERSION} }-zstream/{ARCH}/" ) "
147- BREW_Y2_RELEASE_VERSION=" $( get_vrel_from_rpm " ${{BREW_RPM_SOURCE} }/4 .${{YMINUS2_MINOR_VERSION} }-zstream/{ARCH}/" ) "
148- BREW_RC_RELEASE_VERSION=" $( get_vrel_from_rpm " ${{BREW_RPM_SOURCE} }/4 .${{MINOR_VERSION} }-rc/{ARCH}/" ) "
149- BREW_EC_RELEASE_VERSION=" $( get_vrel_from_rpm " ${{BREW_RPM_SOURCE} }/4 .${{MINOR_VERSION} }-ec/{ARCH}/" ) "
150- BREW_NIGHTLY_RELEASE_VERSION=" $( get_vrel_from_rpm " ${{BREW_RPM_SOURCE} }/4 .${{MINOR_VERSION} }-nightly/{ARCH}/" ) "
155+ BREW_Y0_RELEASE_VERSION=" $( get_vrel_from_rpm " ${{BREW_RPM_SOURCE} }/${{MAJOR_VERSION} } .${{MINOR_VERSION} }-zstream/{ARCH}/" ) "
156+ BREW_Y1_RELEASE_VERSION=" $( get_vrel_from_rpm " ${{BREW_RPM_SOURCE} }/${{PREVIOUS_MAJOR_VERSION} } .${{PREVIOUS_MINOR_VERSION} }-zstream/{ARCH}/" ) "
157+ BREW_Y2_RELEASE_VERSION=" $( get_vrel_from_rpm " ${{BREW_RPM_SOURCE} }/${{YMINUS2_MAJOR_VERSION} } .${{YMINUS2_MINOR_VERSION} }-zstream/{ARCH}/" ) "
158+ BREW_RC_RELEASE_VERSION=" $( get_vrel_from_rpm " ${{BREW_RPM_SOURCE} }/${{MAJOR_VERSION} } .${{MINOR_VERSION} }-rc/{ARCH}/" ) "
159+ BREW_EC_RELEASE_VERSION=" $( get_vrel_from_rpm " ${{BREW_RPM_SOURCE} }/${{MAJOR_VERSION} } .${{MINOR_VERSION} }-ec/{ARCH}/" ) "
160+ BREW_NIGHTLY_RELEASE_VERSION=" $( get_vrel_from_rpm " ${{BREW_RPM_SOURCE} }/${{MAJOR_VERSION} } .${{MINOR_VERSION} }-nightly/{ARCH}/" ) "
151161export BREW_Y0_RELEASE_VERSION
152162export BREW_Y1_RELEASE_VERSION
153163export BREW_Y2_RELEASE_VERSION
169179export BREW_LREL_RELEASE_VERSION
170180
171181# Branch and commit for the openshift-tests-private repository
172- OPENSHIFT_TESTS_PRIVATE_REPO_BRANCH=" release-4 .${{MINOR_VERSION} }"
182+ OPENSHIFT_TESTS_PRIVATE_REPO_BRANCH=" release-${{MAJOR_VERSION} } .${{MINOR_VERSION} }"
173183OPENSHIFT_TESTS_PRIVATE_REPO_COMMIT=" ed0dc50bfaf9b301d175b7035b8c0192ab113db9"
174184export OPENSHIFT_TESTS_PRIVATE_REPO_BRANCH
175185export OPENSHIFT_TESTS_PRIVATE_REPO_COMMIT
0 commit comments