The build scripts use the build number from the environment variables when compiling. It only falls back to the git hash when a build number doesnt exist. The changes you made to the version fetcher made it check only git hashes, which Jenkins build numbers fail to get so the /version command always said Unknown version.
This change puts back the Jenkins build check we have in Purpur, and updates the Jenkins url to your own. It will still use the git hashes as a fallback. The version fetcher now is able to correctly determine the version.
Apologies for not responding to this, will probably be pulling this in when I get around to updating. Do you happen to have any idea when Paperweight will work again for forks of Paper?
The build scripts use the build number from the environment variables when compiling. It only falls back to the git hash when a build number doesnt exist. The changes you made to the version fetcher made it check only git hashes, which Jenkins build numbers fail to get so the
/version
command always saidUnknown version
.This change puts back the Jenkins build check we have in Purpur, and updates the Jenkins url to your own. It will still use the git hashes as a fallback. The version fetcher now is able to correctly determine the version.