On Tue, Nov 10, 2020 at 05:48:24PM +0800, Luan Shengde wrote:
build fail email message with raised error message
- lack commit url
- lack pubkey
- repo url for the commit url not in upstream
- commit not exist or not available
- no more available account on jumper server
Signed-off-by: Luan Shengde shdluan@163.com
lib/assign-account-fail-eamil.rb | 38 ++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100755 lib/assign-account-fail-eamil.rb
diff --git a/lib/assign-account-fail-eamil.rb b/lib/assign-account-fail-eamil.rb new file mode 100755 index 0000000..d15cd69 --- /dev/null +++ b/lib/assign-account-fail-eamil.rb @@ -0,0 +1,38 @@ +#!/usr/bin/env ruby +# SPDX-License-Identifier: MulanPSL-2.0+ +# Copyright (c) 2020 Huawei Technologies Co., Ltd. All rights reserved. +# frozen_string_literal: true
+def build_apply_account_fail_email(my_info, message)
- email_msg = <<~EMAIL_MESSAGE
- To: #{my_info['my_email']}
- Subject: [compass-ci] apply account failed
- Dear user:
Your application for account failed with following errors
^ Add a ':' here.
#{message}
In order to successfully apply a account, pay attention to the following points:
successfully apply a account => apply a account successfully
Thanks, Yuanchao