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

  • 相关阅读:
    为上次写的框架加了一个辅助功能
    复制文件夹下所有文件
    进制之间的相互转换
    c# 修改appConfig文件节点
    GUID
    太悲哀了
    poj2411 Mondriaan's Dream
    poj3311 Hie with the Pie
    HDU3001 Travelling
    luogu p2622关灯问题II
  • 原文地址:https://www.cnblogs.com/jpr-ok/p/11349272.html
Copyright © 2011-2022 走看看