JENKINS-19269 Ensuring insertion order between jobs

Since I use template jobs I need to have a guaranteed insertion order between jobs. However, the current implementation depends on a HashSet with no predictive key. This pull request change the HashSet into a LinkedHashSet