InfoHeap
Tech
Navigation
  • Home
  • Tutorials
    • CSS tutorials & examples
    • CSS properties
    • Javascript cookbook
    • Linux/Unix Command Line
    • Mac
    • PHP
      • PHP functions online
      • PHP regex
    • WordPress
  • Online Tools
    • Text utilities
    • Online Lint Tools
search

Jenkis

  • Install Jenkins on Linux
  • Clone a project
  • Setup build failure email
  • Setup build cron
  • Shell - how to continue on error
  • Delete old builds
 
  • Home
  • > Tutorials
  • > CI
  • > Jenkins

Jenkins – how to setup build cron

By admin on Jan 24, 2016

Jenkins supports setting build triggers using Jenkins crons. This way build will run at regular interval and possibly Jenkins can send email on failure. Here are steps to setup cron in Jenkins project.

  1. Open Jenkins project and click on configure to open configuration screen for the project.
  2. Locate build trigger section and select build periodically.jenkins-email-build-trigger-cron
  3. To run the build every 30 minutes, enter the following cron schedule

    0,30 * * * *
    

    In case you want to introduce random delay (to avoid spike at a specific time) you can use Hash. This will run build two time in our case with some random delay introduced. Example for running builds two times in an hour using hash:

    H/30 * * * *
    
  4. Click save and now you should be able to see a build every 30 min (or approximately 30 min). Here is how build history may look like after few hours.
    jenkins-build-history-section

Suggested posts:

  1. Python selenium – print browser log (including javascript errors) with phantomjs
  2. Bash – variables in double quotes vs without quotes
  3. HTML attribute contenteditable – make an element editable
  4. PHP – preg_replace back reference (in replacement text) examples
  5. Selenium Phantomjs – check browser errors using pytest
  6. How to use dropbox as mini webserver
  7. Edit a file without changing its timestamp on Linux
  8. How to become Google verified author of your wordpress blog using Google+ profile
Share this article: share on facebook share on linkedin tweet this submit to reddit
Posted in Tutorials | Tagged CI, Jenkins, Linux, Tutorials, Ubuntu Linux
  • Browse content
  • Article Topics
  • Article archives
  • Contact Us
Popular Topics: Android Development | AngularJS | Apache | AWS and EC2 | Bash shell scripting | Chrome developer tools | Company results | CSS | CSS cookbook | CSS properties | CSS Pseudo Classes | CSS selectors | CSS3 | CSS3 flexbox | Devops | Git | HTML | HTML5 | Java | Javascript | Javascript cookbook | Javascript DOM | jQuery | Kubernetes | Linux | Linux/Unix Command Line | Mac | Mac Command Line | Mysql | Networking | Node.js | Online Tools | PHP | PHP cookbook | PHP Regex | Python | Python array | Python cookbook | SEO | Site Performance | SSH | Ubuntu Linux | Web Development | Webmaster | Wordpress | Wordpress customization | Wordpress How To | Wordpress Mysql Queries | InfoHeap Money

Copyright © 2025 InfoHeap.

Powered by WordPress