After a short discussion with Vladimir Kozhukalov I agree that fuel-main is not the best place for such customization. The reason is quite simple - fuel-main is a kind of ISO 'build system' and should do exactly one thing - build an ISO. There should not be any complicated logic inside that simplifies only special cases, and not universal.
So it looks like the logic to select correct snapshot should be implemented on CI side - either via modifications applied to every build job by means of JJB, or via separate 'wrapper' script that will be used in CI jobs instead of calling fuel-main directly.
If it's already implemented and it works then this bug can be closed.
After a short discussion with Vladimir Kozhukalov I agree that fuel-main is not the best place for such customization. The reason is quite simple - fuel-main is a kind of ISO 'build system' and should do exactly one thing - build an ISO. There should not be any complicated logic inside that simplifies only special cases, and not universal.
So it looks like the logic to select correct snapshot should be implemented on CI side - either via modifications applied to every build job by means of JJB, or via separate 'wrapper' script that will be used in CI jobs instead of calling fuel-main directly.
If it's already implemented and it works then this bug can be closed.