<commit_before>#!groovy

class jpl {
    def gitPromote = "wget -O - https://raw.githubusercontent.com/pedroamador/git-promote/master/git-promote | bash -s -- "
    def to = emailextrecipients([[$class: 'DevelopersRecipientProvider'],[$class: 'CulpritsRecipientProvider'],[$class: 'UpstreamComitterRecipientProvider'],[$class: 'FirstFailingBuildSuspectsRecipientProvider'],[$class: 'FailingTestSuspectsRecipientProvider']])
}

<commit_msg>Add email notify<commit_after>#!groovy

class jpl {
    private array emailRecipients
    private string emailCopy

    def gitPromote () {
        return "wget -O - https://raw.githubusercontent.com/pedroamador/git-promote/master/git-promote | bash -s -- "
    }
    def setEmailRecipients (value) {
        emailRecipients = value

    }
    def setEmailCopy (value) {
        emailCopy = value
    }

    def notifyEmail () {
        mail to: emailRecipients, cc: emailCopy, subject: "Job ${env.JOB_NAME} [${env.BUILD_NUMBER}] finished with ${currentBuild.result}", body: "See ${env.BUILD_URL}/console"
    }
}

{'fraction_non_alphanumeric': 0.13295346628679963, 'fraction_numerical': 0.0, 'mean_word_length': 3.9716981132075473, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7081556', 'n_tokens_mistral': 358, 'n_tokens_neox': 336, 'n_words': 64}