Fix JENKINS-17133

Implemented a script based trigger and a prebuild script based trigger