Change build number from build script

OK, now it is clear.
I’ve commented on that in another thread: Can I change Bitrise build number from workflow?