[ ] All tests passed. If this feature is not already covered by the tests, I added new tests.
Fix an issue caused by https://github.com/jfrog/build-info/pull/740.
In AQL queries for builds, we always try to get the latest build number, regardless of its value.
We should try to get the latest build number only in one of the following conditions:
[ ] All tests passed. If this feature is not already covered by the tests, I added new tests.
Fix an issue caused by https://github.com/jfrog/build-info/pull/740. In AQL queries for builds, we always try to get the latest build number, regardless of its value. We should try to get the latest build number only in one of the following conditions: