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

  • 相关阅读:
    goland 创建快捷方式 Linux
    Manjaro-Linux感觉蛮有用的系统问题处理
    Rust 语言九九乘法表
    manjaro 显卡驱动
    Archlinux启动时声音总是静音,需要手动调整音量的解决步
    错误: 无法找到目标文件分割所需的 strip 二进制文件。
    rust 安装添加代理
    2.开启aria2c多线程加速下载
    包无效或损坏(PGP签名)
    zsh的自动完成辅助工具:oh-my-zsh
  • 原文地址:https://www.cnblogs.com/jpr-ok/p/11349272.html
Copyright © 2011-2022 走看看