Skip to content

你好,jenkins :Email extension 新需求,求帮忙 can you help me thank you  #5

@hanjuntao001

Description

@hanjuntao001

大神,又要麻烦你了啊。我现在在搞jenkins邮件发送,附件是可以发送的。但是我想把报告内容展示到正文
需求就是:把htmltestrunner用例嵌入到模板中 作为途中模板的 构建信息的一个item ,需要这样一个py工具,这个好实现吗,能否帮忙研究研究,多谢

大神有空能帮我研究一下python怎样生成一个新的模板
image

jenkins 邮件模板 用

<title>${ENV, var="JOB_NAME"}-第${BUILD_NUMBER}次构建日志</title>
(本邮件是程序自动下发的,请勿回复!)

构建结果 - ${BUILD_STATUS}


构建信息
Changes Since Last Successful Build:
${CHANGES_SINCE_LAST_SUCCESS,reverse=true, format="Changes for Build #%n:
%c
",showPaths=true,changesFormat="
[%a]
%m
",pathFormat="    %p"}
Failed Test Results
$FAILED_TESTS

构建日志 (最后 100行):
<textarea cols="80" rows="30" readonly="readonly" style="font-family: Courier New">${BUILD_LOG, maxLines=100}</textarea>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions