Signed-off-by: Liu Yinsi liuyinsi@163.com --- lib/email.sh | 2 +- lib/monitor.rb | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/lib/email.sh b/lib/email.sh index 63d5a51e2..bca4ab435 100755 --- a/lib/email.sh +++ b/lib/email.sh @@ -8,7 +8,7 @@ Subject: [NOTIFY Compass-CI] Test job failed: $id Dear $my_name:
Sorry to inform you that your test job is failed, you can click the following link to view details. - http://api.compass-ci.openeuler.org:$%7BSRV_HTTP_PORT:-11300%7D$result_root + http://api.compass-ci.openeuler.org:$%7BSRV_HTTP_RESULT_PORT:-20007%7D$resul...
Regards Compass-CI diff --git a/lib/monitor.rb b/lib/monitor.rb index f14e131e3..bf7ef69ba 100755 --- a/lib/monitor.rb +++ b/lib/monitor.rb @@ -100,9 +100,9 @@ class Monitor
@result_roots.each do |res| res.to_s.delete_prefix!('/srv') - srv_http_host = job['SRV_HTTP_HOST'] || 'api.compass-ci.openeuler.org' - srv_http_port = job['SRV_HTTP_PORT'] || '11300' - url = "http://#%7Bsrv_http_host%7D:#%7Bsrv_http_port%7D#%7Bres%7D" + srv_http_result_host = job['SRV_HTTP_RESULT_HOST'] || 'api.compass-ci.openeuler.org' + srv_http_result_port = job['SRV_HTTP_RESULT_PORT'] || '20007' + url = "http://#%7Bsrv_http_result_host%7D:#%7Bsrv_http_result_port%7D#%7Bres%7D" system "lftp -c mirror #{url} >/dev/null 2>&1" end end