moved the jenkinsBuildFailed method as requested