Build pipeline now working, but seems that jobs don't update properly except on fresh run (after removing templates from /home/jenkins and deleting jobs).
Only first job is now triggered.
Moved build plugin stages to config.yml.
Simplified job creation code.
Jenkins jobs now call appropriate script.