Specify "unknown" if version generation for plugins fails.

This can happen for plugins that have not had a first commit.

Change-Id: I9510bc65cff8bc6e7e97315cdc836fe6b24facec
This commit is contained in:
Han-Wen Nienhuys 2017-10-01 09:50:46 +01:00
parent 84d57a890b
commit 79118131ac

View File

@ -17,6 +17,6 @@ function rev() {
echo STABLE_BUILD_GERRIT_LABEL $(rev .)
for p in plugins/* ; do
test -d "$p" || continue
echo STABLE_BUILD_$(echo $(basename $p)_LABEL|tr '[a-z]' '[A-Z]' ) $(rev $p)
echo STABLE_BUILD_$(echo $(basename $p)_LABEL|tr '[a-z]' '[A-Z]' ) $(rev $p || echo unknown)
done
echo "STABLE_WORKSPACE_ROOT ${PWD}"