Skip to content
Ádám L. Juhász edited this page Mar 20, 2024 · 1 revision

This page hold unorganized notes regarding the project.

CI/CD variables

Git

GIT_COMMIT=$(git rev-parse --short HEAD) # --short flag is optional
REVISION_NUMBER=$(git rev-list --count --all --min-age=$(git show --no-patch --format=%ct HEAD))

SVN

I am no longer working with SVN on a day-to-day basis, so I have no means to test this.

REVISION_NUMBER=$(svn info --show-item revision)
GIT_COMMIT=$REVISION_NUMBER # N/A
Clone this wiki locally