Jenkins

Are you tired of missing Jenkins jobs emails?

Notify17 - Template
Jenkins - {{ .tag }}

---

Jenkins build {{ .tag }} has finished with status {{ .status }} in {{ .duration }}ms

Browse at {{ .url }}
Jenkins - Pipeline
// JsonObject: http://bit.ly/2Q6az3l
// Jenkins globals: http://bit.ly/2Q9me1h
def payload = JsonOutput.toJson([
  tag:        env.BUILD_TAG,
  status:     currentBuild.currentResult,
  duration:   currentBuild.duration,
  url:        currentBuild.absoluteUrl,
  ])

// http://bit.ly/2Qc3AGp
httpRequest(
  url: 'https://hook.notify17.net/api/template/TEMPLATE_API_KEY',
  contentType: "APPLICATION_JSON",
  httpMode: "POST",
  requestBody: payload
)