zoukankan      html  css  js  c++  java
  • [Jenkins] 执行SoapUI的task,设置邮件内容为HTML+CSS

    设置邮件内容:Default Content

    <span style="font-family:verdana;font-size:16px;color:black;font-weight:bold;">Project : </span>
    <span style="font-family:verdana;font-size:16px;color:black;">PA_Regression_Accuracy_Static</span> <BR> <BR>
    <span style="font-family:verdana;font-size:16px;color:black;font-weight:bold;">Build Status : </span>
    <span style="font-family:verdana;font-size:16px;color:red;">${BUILD_STATUS}</span> <BR> <BR>
    
    <span style="font-family:verdana;font-size:16px;color:black;font-weight:bold;">Automation Tool : </span>
    <span style="font-family:verdana;font-size:16px;color:black;">SoapUI</span> <BR> <BR>
    
    <span style="font-family:verdana;font-size:16px;color:black;font-weight:bold;">TP vs Live Test Results : </span>
    <span style="font-family:verdana;font-size:16px;color:black;"><a href=http://szotwin2k801/PA/>TP vs Live Test Results</a></span> <BR> <BR>
    
    <span style="font-family:verdana;font-size:16px;color:black;font-weight:bold;">Links in SoapUI Test Results : </span>
    <span style="font-family:verdana;font-size:16px;color:black;"><a href=https://jenkins.morningstar.com/job/DO/view/DO%20Automation/job/Automation_SoapUI_PA_Regression_Accuracy_Static/ws/result-output//overview-summary.html>SoapUI Test Results</a></span> <BR> <BR>
    
    <HR style="text-align:left;" width="95%" color=#A6CAF0 size=20 />
    ${FILE,path="result-output/overview-summary.html"}
    
    <HR style="text-align:left;" width="95%" color=#A6CAF0 size=20 />
    ${FILE,path="result-output/alltests-fails.html"}
    

    设置邮件格式:Content Type 为 HTML(text/html)

    将CSS作为附件 : Attachments 为 result-output/*.css

  • 相关阅读:
    vim可以打开,gvim无法打开
    Ubuntu用apt-get安装时依赖包无法安装
    如何用mm、mmm编译android中的模块
    装饰模式简单的代码
    FileWriter和FileReader简单使用
    TCP/IP、Http、Socket的区别--特别仔细
    surface实例-小球弹起事例
    android中图片的三级缓存cache策略(内存/文件/网络)
    接口回调
    大公司的Java面试题集
  • 原文地址:https://www.cnblogs.com/MasterMonkInTemple/p/4682177.html
Copyright © 2011-2022 走看看