Skip to content
Snippets Groups Projects
Commit 252e4e66 authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Merge branch 'JK/ci' into 'develop'

Documentation: fixed branch name for CI builds

See merge request !40
parents 568b4084 05bedcc6
No related branches found
No related tags found
1 merge request!40Documentation: fixed branch name for CI builds
......@@ -31,8 +31,13 @@ done
rm -rf ./html/
# Assemble environment variables which are used in the Doxyfile
#PROJECT_NUMBER="version $(git branch --show-current):$(git log -1 --format="%h (%cd)")"
PROJECT_NUMBER="version $(git branch --show-current):$(git rev-parse --short HEAD)"
if [[ "$CI_COMMIT_REF_NAME" == "" ]]; then
_branch=$(git branch --show-current)
else
_branch="$CI_COMMIT_REF_NAME"
fi
#PROJECT_NUMBER="version $_branch:$(git log -1 --format="%h (%cd)")"
PROJECT_NUMBER="version $_branch:$(git rev-parse --short HEAD)"
# Generate documentation
PROJECT_NUMBER="$PROJECT_NUMBER" doxygen
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment