Skip to content

Commit

Permalink
contrib/intel/jenkins: Use strings properly for send-mail
Browse files Browse the repository at this point in the history
Signed-off-by: Juee Himalbhai Desai <[email protected]>
  • Loading branch information
Juee14Desai committed Jan 31, 2025
1 parent 5a22c3a commit 68d9bfb
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions contrib/intel/jenkins/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -122,19 +122,20 @@ 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}
"""
def options = ""
if (verbose) {
cmd = "${cmd} -v"
options = "${options} -v"
}

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

sh "${cmd}"
sh """source ${CI_LOCATION}/${env.CI_MODULE}/venv/bin/activate;\
python ${CI_LOCATION}/summarize.py \
--log_directory=${env.LOG_DIR} \
${options}
"""
}

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

0 comments on commit 68d9bfb

Please sign in to comment.