2017-01-31 4 views

답변

0
def notifyFailed() { 
    emailext (
     subject: "FAILED : Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]'", 
     body: '''<p><font size="8" color="red">Build Failure!</font></p> 
    <p>Check console output at &QUOT;<a href='${BUILD_URL}consoleText'>${JOB_NAME} [${BUILD_NUMBER}]</a>&QUOT;</p> 
    ${BUILD_LOG_REGEX, regex="^.*?*****.*?$", linesBefore=0, linesAfter=999, maxMatches=10, showTruncatedLines=false,escapeHtml=false}''',