Skip to content

Commit

Permalink
Merge branch 'fanf-bug_24191/make_version_of_backport_branch_ok_for_r…
Browse files Browse the repository at this point in the history
…udder_package' into backports/7.3.12/24146
  • Loading branch information
clarktsiory committed Feb 14, 2024
2 parents c015492 + e7a97e4 commit f71a9ea
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions main-build.conf
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,9 @@
# It defined the API/ABI used and it is important for binary compatibility
branch-type=nightly
rudder-version=7.3.12-backport-24146
# Uncomment following variable if you want to set the value of rudder version in the
# metadata file to a different value than rudder-version, for ex when rudder-version
# does not follow the standard naming scheme and rudder-package refuse a plugin with it.
rudder-rpkg-version=7.3.12
common-version=2.1.1
private-version=2.1.0
7 changes: 4 additions & 3 deletions makefiles/global-vars.mk
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ RUDDER_VERSION = $(shell sed -ne '/^rudder-version=/s/rudder-version=//p' $(MAI
BRANCH_TYPE = $(shell sed -ne '/^branch-type=/s/branch-type=//p' $(MAIN_BUILD))
COMMON_VERSION = $(shell sed -ne '/^common-version=/s/common-version=//p' $(MAIN_BUILD))
PRIVATE_VERSION = $(shell sed -ne '/^private-version=/s/private-version=//p' $(MAIN_BUILD))
RUDDER_RPKG_VERSION = $(shell sed -ne '/^rudder-rpkg-version=/s/rudder-rpkg-version=//p' $(MAIN_BUILD))

ifneq (,$(wildcard ./build.conf))
PLUGIN_VERSION = $(shell sed -ne '/^plugin-version=/s/plugin-version=//p' build.conf)
Expand All @@ -19,16 +20,16 @@ LIB_PUBLIC_NAME = plugins-parent
LIB_PRIVATE_VERSION = ${PRIVATE_VERSION}
LIB_PUBLIC_VERSION = ${COMMON_VERSION}

VERSION = ${RUDDER_VERSION}-${PLUGIN_VERSION}
VERSION = ${RUDDER_RPKG_VERSION:=RUDDER_VERSION}-${PLUGIN_VERSION}
PLUGIN_POM_VERSION = $(RUDDER_VERSION)-${PLUGIN_VERSION}
RUDDER_BUILD_VERSION = $(RUDDER_VERSION)
ifeq ($(BRANCH_TYPE),nightly)
VERSION = ${RUDDER_VERSION}-${PLUGIN_VERSION}-nightly
VERSION = ${RUDDER_RPKG_VERSION}-${PLUGIN_VERSION}-nightly
PLUGIN_POM_VERSION = $(RUDDER_VERSION)-${PLUGIN_VERSION}-SNAPSHOT
endif
ifeq ($(BRANCH_TYPE),next)
PLUGIN_POM_VERSION = $(RUDDER_VERSION)-${PLUGIN_VERSION}-SNAPSHOT
VERSION = ${RUDDER_VERSION}-${PLUGIN_VERSION}-nightly
VERSION = ${RUDDER_RPKG_VERSION}-${PLUGIN_VERSION}-nightly
RUDDER_BUILD_VERSION = $(RUDDER_VERSION)-SNAPSHOT
endif

Expand Down

0 comments on commit f71a9ea

Please sign in to comment.