michaelpporter
11/16/2017 - 1:38 PM

Jenkins Pipeline - Comment on JIRA

try {
    error "Exception"
} catch(error) {
  def comment = "${BUILD_URL} FAILED - ${ERROR}"
  jiraAddComment idOrKey: 'GENERIC-999', comment: comment, site: 'YOURJIRASITE'
  currentBuild.result = 'FAILURE'
}