Skip to content

Commit bb9c9e2

Browse files
zachdworkinj-xiong
authored andcommitted
contrib/intel/jenkins: Add --send-mail for new ci summary
Signed-off-by: Zach Dworkin <[email protected]>
1 parent c7dedc4 commit bb9c9e2

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

contrib/intel/jenkins/Jenkinsfile

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -122,18 +122,19 @@ def gather_logs(cluster, key, dest, source) {
122122
}
123123

124124
def CI_summarize(verbose=false) {
125+
cmd = """source ${CI_LOCATION}/${env.CI_MODULE}/venv/bin/activate;\
126+
python ${CI_LOCATION}/summarize.py \
127+
--log_directory=${env.LOG_DIR}
128+
"""
125129
if (verbose) {
126-
sh """source ${CI_LOCATION}/${env.CI_MODULE}/venv/bin/activate;\
127-
python ${CI_LOCATION}/summarize.py \
128-
--log_directory=${env.LOG_DIR} \
129-
-v
130-
"""
131-
} else {
132-
sh """source ${CI_LOCATION}/${env.CI_MODULE}/venv/bin/activate;\
133-
python ${CI_LOCATION}/summarize.py \
134-
--log_directory=${env.LOG_DIR}
135-
"""
130+
cmd = "${cmd} -v"
136131
}
132+
133+
if (weekly || RELEASE) {
134+
cmd = "${cmd} --send-mail"
135+
}
136+
137+
sh "${cmd}"
137138
}
138139

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

0 commit comments

Comments
 (0)