Skip to content
Snippets Groups Projects
Commit f0105d32 authored by iaibrys's avatar iaibrys
Browse files

Tweak build versions script.

parent 34bacb16
Branches
No related tags found
1 merge request!1Feature/remove coffeescript
Pipeline #133 passed
...@@ -33,6 +33,9 @@ function emit_info() { ...@@ -33,6 +33,9 @@ function emit_info() {
echo "${component_name}:" echo "${component_name}:"
branch=`git --git-dir=$component_dir/.git --work-tree=$PWD/$component_dir rev-parse --abbrev-ref HEAD` branch=`git --git-dir=$component_dir/.git --work-tree=$PWD/$component_dir rev-parse --abbrev-ref HEAD`
if [[ "${branch}" = "HEAD" ]]; then
branch=${CI_BUILD_REF_NAME:-$branch}
fi
echo " version: $(get_version)" echo " version: $(get_version)"
echo " build_date: ${builddate}" echo " build_date: ${builddate}"
echo " branch: \"${branch}\"" echo " branch: \"${branch}\""
...@@ -54,7 +57,7 @@ sed=sed ...@@ -54,7 +57,7 @@ sed=sed
if type gsed >/dev/null 2>&1; then if type gsed >/dev/null 2>&1; then
sed=gsed sed=gsed
fi fi
component=$(git config --local remote.origin.url | ${sed} -r 's/.*[:/]([^/]+)(\.git)?$/\1/' | ${sed} -r 's/\//-/') component=$(git config --local remote.origin.url | ${sed} -r 's/.*[:/]([^/]+)$/\1/g' | ${sed} -r 's/\.git//' | ${sed} -r 's/\//-/')
emit_info ${component} . emit_info ${component} .
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment