added Executing groovy scripts and injecting environment variables after the SCM step.