salimfadhley/jenkinsapi — pull request #233 by dsoprea (2014-01-21 20:42:37+00:00)
Title: Rewrote how we get the latest build number to guarantee ordering.

The previous design was the grab the list of build-numbers, and load them into a set(). This only makes sense if there is a possibility of duplicates, so I'm assuming that is the case.

However, a set does not guarantee order. We now convert it to a list, sort it, and grab the last (highest) value.

Though I can't guarantee that this causes the wrong build-number being returning in the invocation object, it would make sense and this is still a bug that needs to be fixed.