I have a hudson build server. The source code is managed by a git repository. For each build the latest version is checked out and compiled. Now i\'d like to tell hudson to
One workaround would be to:
build_br
" branch.build_br
to the expected commitbuild_br
to remote repo monitor by Jenkins or Hudson (that would be a push --force
, as illustrated in "git reset --hard and a remote repository")That way, building that branch build_br
would mean building a specific commit, and the GIT_COMMIT will be correctly set.
No development should take place on that special branch, since it is reset regularly to any commit you need to be build.