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

  • 相关阅读:
    22:django 配置详解
    21:序列化django对象
    20:django中的安全问题
    19:django 分页
    HTML 标签(一)
    流程图学习绘制
    HTTP原理
    终端的颜色代码
    Python 进程 线程总结
    Python Select模型
  • 原文地址:https://www.cnblogs.com/jpr-ok/p/11349272.html
Copyright © 2011-2022 走看看