jfrog / build-info

Artifactory's open integration layer for CI build servers
https://www.buildinfo.org
Apache License 2.0
145 stars 154 forks source link

Fix get build number of AQL #749

Closed yahavi closed 1 year ago

yahavi commented 1 year ago

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:

  1. buildNumber is "LATEST"
  2. buildNumber is "LAST_RELEASE"
  3. buildNumber is empty