Skip to content

Commit

Permalink
contrib/intel/jenkins: Add --send-mail for new ci summary
Browse files Browse the repository at this point in the history
Signed-off-by: Zach Dworkin <[email protected]>
  • Loading branch information
zachdworkin committed Jan 24, 2025
1 parent 427ab3f commit 2e8ef33
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions contrib/intel/jenkins/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -120,18 +120,19 @@ def gather_logs(cluster, key, dest, source) {
}

def CI_summarize(verbose=false) {
cmd = """source ${CI_LOCATION}/${env.CI_MODULE}/venv/bin/activate;\
python ${CI_LOCATION}/summarize.py \
--log_directory=${env.LOG_DIR}
"""
if (verbose) {
sh """source ${CI_LOCATION}/${env.CI_MODULE}/venv/bin/activate;\
python ${CI_LOCATION}/summarize.py \
--log_directory=${env.LOG_DIR} \
-v
"""
} else {
sh """source ${CI_LOCATION}/${env.CI_MODULE}/venv/bin/activate;\
python ${CI_LOCATION}/summarize.py \
--log_directory=${env.LOG_DIR}
"""
cmd = "${cmd} -v"
}

if (weekly || RELEASE) {
cmd = "${cmd} --send-mail"
}

sh "${cmd}"
}

def summarize(item, verbose=false, release=false, send_mail=false) {
Expand Down

0 comments on commit 2e8ef33

Please sign in to comment.