added a hook for use cases like https://github.com/jenkinsci/jenkins/pull/1079