zoukankan      html  css  js  c++  java
  • Mac下持续集成-与JMeter与Ant执行后自动发送邮件的整合+定时任务

    mac定时任务的开启:

    Last login: Tue Aug 13 22:49:54 on ttys004
    (base) localhost:~ ligaijiang$ sudo launchctl list | grep cron
    Password:
    -    0    com.vix.cron
    (base) localhost:~ ligaijiang$ sudo /usr/sbin/cron start
    (base) localhost:~ ligaijiang$ sudo launchctl list | grep cron
    -    0    com.vix.cron
    (base) localhost:~ ligaijiang$ LaunchAgents  sudo launchctl list | grep cron
    -bash: LaunchAgents: command not found
    (base) localhost:~ ligaijiang$ LaunchAgents  ll /etc/crontab
    -bash: LaunchAgents: command not found
    (base) localhost:~ ligaijiang$ sudo touch /etc/crontab
    (base) localhost:~ ligaijiang$ LaunchAgents  ll /etc/crontab
    -bash: LaunchAgents: command not found
    (base) localhost:~ ligaijiang$ LaunchAgents  sudo launchctl list | grep cron
    -bash: LaunchAgents: command not found
    (base) localhost:~ ligaijiang$ sudo launchctl list | grep cron
    -    1    com.vix.cron
    (base) localhost:~ ligaijiang$ LaunchAgents  ll /etc/crontab
    -bash: LaunchAgents: command not found
    (base) localhost:~ ligaijiang$ ls: /etc/crontab
    -bash: ls:: command not found
    (base) localhost:~ ligaijiang$ sudo /usr/sbin/cron start
    cron: cron already running, pid: 75237
    (base) localhost:~ ligaijiang$ 

    Jenkins配置定时任务,例如:

    以下表示每5分钟自动构建一次

    Poll SCM:定时检查源码变更,如果有更新就checkout最新code下来,然后执行构建动作。

     如果没有更新就不会执行构建

    Build periodically:周期进行项目构建(源码是否发生变化没有关系)

    所以如果没有配GIT或SVN的话,周期执行就用Build periodically

  • 相关阅读:
    IEnumerable<T>转DataTable的几种方法
    关于IAsyncResult接口的CompletedSynchronously属性
    为WCF增加UDP绑定(储备篇)
    WPF自定义集合控件概述与遇到的问题
    WPF嵌套模板引发的血案
    为WCF增加UDP绑定(实践篇)
    Uva 10557 XYZZY(DFS+BFS)
    Uva 572 Oil Deposits(DFS)
    Uva 532 Dungeon Master(三维迷宫)
    Uva 10004 Bicoloring
  • 原文地址:https://www.cnblogs.com/jpr-ok/p/11349272.html
Copyright © 2011-2022 走看看