Skip to content
Snippets Groups Projects
Commit d07e27a6 authored by alexandr.kravchenko's avatar alexandr.kravchenko
Browse files

fixed checking on build environment

parent 5272d489
No related branches found
No related tags found
1 merge request!71Support 2649
...@@ -92,8 +92,9 @@ extract_version_number ...@@ -92,8 +92,9 @@ extract_version_number
### cause information from this changelog (version) is used to write package metadata. And we had messed up for a long time because of desyncing. ### cause information from this changelog (version) is used to write package metadata. And we had messed up for a long time because of desyncing.
### This is a solution. We modify the changelog only if there are updates and not on build servers. And of course if it's not cmake-based build project. ### This is a solution. We modify the changelog only if there are updates and not on build servers. And of course if it's not cmake-based build project.
### let's keep those comments here for a while ### let's keep those comments here for a while
NOTONBUILDSERVER=0
if [ $( gitlab-runner -v 2> /dev/null ; echo $? ) == 0 ]; then gitlab-runner -v 2&>>/dev/null || NOTONBUILDSERVER=$?
if [ $NOTONBUILDSERVER == 0 ]; then
echo "[WRN] on build platform. Version won't be changed" # okay, so this echo wont be outputted as the condition is not true echo "[WRN] on build platform. Version won't be changed" # okay, so this echo wont be outputted as the condition is not true
elif [ ! -e debian/changelog ]; then ### I guess this what's supposed to be added in order to solve the issue with the changelog?+ elif [ ! -e debian/changelog ]; then ### I guess this what's supposed to be added in order to solve the issue with the changelog?+
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment