Think I was a little off topic - still I wonder why the archived build has the correct build number set with git pre-commit hook? So it seems to be the archive is afterwards modified With the CI_BUILD_NUMBER
It definitely would be nice if we are allowed to change CI_BUILD_NUMBER dynamically did anyone already create a feature request?