Skip to content

Commit

Permalink
Update Jenkinsfile to remove email
Browse files Browse the repository at this point in the history
  • Loading branch information
thejdeep committed Oct 18, 2022
1 parent 3cae6da commit bc8ea45
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions dev/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,6 @@ global = [
'credentialsId' : "a2df7d28-de1f-4450-94ed-a9f335713729"
]

def email_notification(email_to, email_subject, email_body) {
// send to email
mail (to: email_to,
subject: email_subject,
body: email_body);
}


properties([pipelineTriggers([githubPush()])])

pipeline{
Expand Down Expand Up @@ -75,16 +67,6 @@ pipeline{
junit '**/TEST*.xml'
archiveArtifacts artifacts: "**/spark*.jar", fingerprint: true
}
success {
email_notification("${CHANGE_AUTHOR_EMAIL}", "Jenkins PR build succeeded", "Job succeeded ${JOB_URL}")

}
failure {
email_notification("${CHANGE_AUTHOR_EMAIL}", "Jenkins PR build failed", "Job failed ${JOB_URL}")
}
aborted {
email_notification("${CHANGE_AUTHOR_EMAIL}", "Jenkins PR build aborted", "Job aborted ${JOB_URL}")
}
cleanup {
cleanWs(cleanWhenNotBuilt: false,
deleteDirs: true,
Expand Down

0 comments on commit bc8ea45

Please sign in to comment.