• 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

  • 相关阅读:
    jquery跨域3
    juery的跨域请求2
    jquery的跨域请求
    synchronized与Lock的区别
    springboot之启动原理解析及源码阅读
    java中Number类理解
    springboot中配置文件application.properties的理解
    restTemplate设置访问超时
    BigDecimal.setScale 处理java小数点
    NIO之FileChannel类的理解和使用
  • 原文地址:https://www.cnblogs.com/jpr-ok/p/11349272.html
Copyright © 2020-2023  润新知