Commit ca195341 authored by Maksimelyan Tamashevich (EPAM)'s avatar Maksimelyan Tamashevich (EPAM)
Browse files

GONRG-3122 Replace DEV_VER variable to BUILD_VER

parent d4f5882a
Pipeline #63975 passed with stage
in 15 seconds
......@@ -63,15 +63,15 @@ osdu-gcp-helm-charts-latest:
LAST_MAJOR_VER=$(echo $LAST_CORE_VER | awk -F . '{print $1}')
LAST_MINOR_VER=$(echo $LAST_CORE_VER | awk -F . '{print $2}')
LAST_PATCH_VER=$(echo $LAST_CORE_VER | awk -F . '{print $3}')
LAST_DEV_VER=$(echo $LAST_VER | awk -F + '{print $2}');
LAST_BUILD_VER=$(echo $LAST_VER | awk -F + '{print $2}');
if [[ $TAG_MAJOR_VER -eq $LAST_MAJOR_VER && $TAG_MINOR_VER -eq $LAST_MINOR_VER ]];
then
let MINOR_VER=TAG_MINOR_VER+1
VER=${TAG_MAJOR_VER}.${MINOR_VER}.0+1;
else
let DEV_VER=LAST_DEV_VER+1
VER=${LAST_CORE_VER}+${DEV_VER};
let BUILD_VER=LAST_BUILD_VER+1
VER=${LAST_CORE_VER}+${BUILD_VER};
fi;
fi;
- echo $VER
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment