• Jenkins的配置


    首先配置全局配置

    配置邮件

    配置拓展邮箱

    主题和内容

    默认的html

    <!DOCTYPE html>
    <html>
    <head>
    <meta charset="UTF-8">
    <title>${ENV, var="JOB_NAME"}-第${BUILD_NUMBER}次构建日志</title>
    </head>
     
     
    <body leftmargin="8" marginwidth="0" topmargin="8" marginheight="4" offset="0">
        <table width="95%" cellpadding="0" cellspacing="0" style="font-size: 11pt; font-family: Tahoma, Arial, Helvetica, sans-serif">
            <tr>
                <td>(本邮件由程序自动下发,请勿回复!)</td>
            </tr>
            <tr>
                <td>
                    <h2><font color="#FF0000">构建结果 - ${BUILD_STATUS}</font></h2>
                </td>
            </tr>
            <tr>
                <td><br />
                    <b><font color="#0B610B">构建信息</font></b>
                    <hr size="2" width="100%" align="center" />
                </td>
            </tr>
            <tr><a href="${PROJECT_URL}">${PROJECT_URL}</a>
                <td>
                    <ul>
                        <li>项目名称:${PROJECT_NAME}</li>
                        <li>GIT路径:<a href="${GIT_URL}">${GIT_URL}</a></li>                    
                        <li>构建编号:${BUILD_NUMBER}</li>                    
                        <li>触发原因:${CAUSE}</li>   
                        <li>构建日志:<a href="${BUILD_URL}console">${BUILD_URL}console</a></li>
                    </ul>
                </td>
            </tr>
            <tr>
                <td>
                    <b><font color="#0B610B">变更信息:</font></b>
                   <hr size="2" width="100%" align="center" />
                </td>
            </tr>
            <tr>
                <td>
                    <ul>
                        <li>上次构建成功后变化 :  ${CHANGES_SINCE_LAST_SUCCESS}</a></li>
                    </ul>    
                </td>
            </tr>
     <tr>
                <td>
                    <ul>
                        <li>上次构建不稳定后变化 :  ${CHANGES_SINCE_LAST_UNSTABLE}</a></li>
                    </ul>    
                </td>
            </tr>
            <tr>
                <td>
                    <ul>
                        <li>历史变更记录 : <a href="${PROJECT_URL}changes">${PROJECT_URL}changes</a></li>
                    </ul>    
                </td>
            </tr>
            <tr>
                <td>
                    <ul>
                        <li>变更集:${JELLY_SCRIPT,template="html"}</a></li>
                    </ul>    
                </td>
            </tr>
            <!--
            <tr>
                <td>
                    <b><font color="#0B610B">Failed Test Results</font></b>
                    <hr size="2" width="100%" align="center" />
                </td>
            </tr>
            <tr>
                <td>
                    <pre style="font-size: 11pt; font-family: Tahoma, Arial, Helvetica, sans-serif">$FAILED_TESTS</pre>
                    <br />
                </td>
            </tr>
            
            <tr>
                <td>
                    <b><font color="#0B610B">构建日志 (最后 100行):</font></b>
                    <hr size="2" width="100%" align="center" />
                </td>
            </tr>-->
            <!-- <tr>
                <td>Test Logs (if test has ran): <a
                    href="${PROJECT_URL}ws/TestResult/archive_logs/Log-Build-${BUILD_NUMBER}.zip">${PROJECT_URL}/ws/TestResult/archive_logs/Log-Build-${BUILD_NUMBER}.zip</a>
                    <br />
                <br />
                </td>
            </tr> -->
            <!--
            <tr>
                <td>
                    <textarea cols="80" rows="30" readonly="readonly" style="font-family: Courier New">${BUILD_LOG, maxLines=100,escapeHtml=true}</textarea>
                </td>
            </tr>-->
            <hr size="2" width="100%" align="center" />
     
        </table>
     
     
    </body>
    </html>

    选择使用模板

    配置Publish over SSH

     

    项目的构建

    .

    执行文件

    cd  /data/dockerfiles/log
    chomd  775  XXX.jar

    source /etc/profile
    nohup java -jar XXXXX.jar>>log8080.txt &2&1&

     

  • 相关阅读:
    public、private、protected继承的规则
    派生类对象的构造函数与析构函数
    类的保护成员
    派生类覆盖(修改)基类成员
    条款03:尽可能使用const
    处理类与类之间的关系
    继承派生基本概念
    条款02:尽量以const,enum,inline替换#define(宁可编译器替代预处理器)
    Redis持久化AOF和RDB对比
    Memcached取模算法
  • 原文地址:https://www.cnblogs.com/gyadmin/p/10495325.html
Copyright © 2020-2023  润新知