JENKINS-19269: Ensuring insertion order between jobs

Since I depend on template projects, I need to have the jobs evaluated in insertion order.
Current implementation record job definitions using a HashSet, which influence the iteration order.
This pull request changes it into a LinkedHashSet, so insertion order is preserved.