corrected groovypostbuild script and added SCM retry
links for different build jobs
renamed
rearranged code