{"id":15023,"date":"2020-11-03T14:42:03","date_gmt":"2020-11-03T13:42:03","guid":{"rendered":"https:\/\/www.dbi-services.com\/blog\/jenkins-how-to-create-a-cyclic-job\/"},"modified":"2020-11-03T14:42:03","modified_gmt":"2020-11-03T13:42:03","slug":"jenkins-how-to-create-a-cyclic-job","status":"publish","type":"post","link":"https:\/\/www.dbi-services.com\/blog\/jenkins-how-to-create-a-cyclic-job\/","title":{"rendered":"Jenkins how to create a cyclic job"},"content":{"rendered":"<h3>Introduction<\/h3>\n<p>Hi everybody<br \/>\nToday it&#8217;s not about Control-M jobs but about Jenkins jobs ,Jenkins allows you also to schedule jobs and below we will see how to make it cyclic.<br \/>\nFirst , we will create a job using Jenkins graphic web interface<\/p>\n<h3>How to create a job<\/h3>\n<p>Connect to Jenkins interface with your login\/password<\/p>\n<p><a href=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/JENKINS-CRON1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-44638\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/JENKINS-CRON1.jpg\" alt=\"\" width=\"1566\" height=\"530\" \/><\/a><br \/>\n-Select new item<br \/>\n-Select freestyle build<br \/>\n-Name your build<\/p>\n<p><a href=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/JENKINS-CRON4.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-44653\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/JENKINS-CRON4.png\" alt=\"\" width=\"1507\" height=\"933\" \/><\/a><br \/>\nIn the build&#8217;s configuration , enter your command line in the build\u00a0 part (here we will chose &#8220;execute shell&#8221; in the drop down menu )<\/p>\n<p><a href=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/JENKINS-CRON8addcmd.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-44646\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/JENKINS-CRON8addcmd.png\" alt=\"\" width=\"1511\" height=\"1002\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<h3>configure the scheduling<\/h3>\n<p>To schedule a job,Jenkins is using the same syntax as Linux crontab,then it&#8217;s easy to perform a cyclic job<a href=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/JENKINS-CRON7.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-44645\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/JENKINS-CRON7.png\" alt=\"\" width=\"1537\" height=\"661\" \/><\/a><br \/>\nCheck the box &#8221; build periodically&#8221;It is Based on the same logic of Linux cron , moreover you have example and syntax by clicking on the &#8220;?&#8221; icon on the right of the field.<br \/>\nOn this example we configured the scheduling to have a build execution every 2 minutes<br \/>\nThe screenshot is showing\u00a0 that it will be executed on monday( and every other week days) every 2 minutes and next execution is planned.<\/p>\n<h3>Start the build<\/h3>\n<p>After that you can launch your build and check if the job is looping as expected (note that each execution create a build)<br \/>\nwe can see that build is triggered as expected and time interval is respected as well<\/p>\n<p><a href=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/JENKINS-CRON-interval.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-44647\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/JENKINS-CRON-interval.png\" alt=\"\" width=\"1268\" height=\"744\" \/><\/a><\/p>\n<h3>Conclusion<\/h3>\n<p>Jenkins is quite similar with Control-M which allows you to schedule jobs and do many other interesting tasks such as managing a complete workflow using &#8220;pipelines&#8221;, it can also be mounted as a Docker image and has a good flexibility.the web interface is really intuitive and we can be associate it\u00a0 to other software ( like Control-M )<br \/>\nStay tuned to get more Control-M and Jenkins tips and don&#8217;t forget to check dbi bloggers.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction Hi everybody Today it&#8217;s not about Control-M jobs but about Jenkins jobs ,Jenkins allows you also to schedule jobs and below we will see how to make it cyclic. First , we will create a job using Jenkins graphic web interface How to create a job Connect to Jenkins interface with your login\/password -Select [&hellip;]<\/p>\n","protected":false},"author":40,"featured_media":15029,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1256,1320],"tags":[],"type_dbi":[],"class_list":["post-15023","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-control-m","category-devops"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.2 (Yoast SEO v27.2) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Jenkins how to create a cyclic job - dbi Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.dbi-services.com\/blog\/jenkins-how-to-create-a-cyclic-job\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Jenkins how to create a cyclic job\" \/>\n<meta property=\"og:description\" content=\"Introduction Hi everybody Today it&#8217;s not about Control-M jobs but about Jenkins jobs ,Jenkins allows you also to schedule jobs and below we will see how to make it cyclic. First , we will create a job using Jenkins graphic web interface How to create a job Connect to Jenkins interface with your login\/password -Select [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dbi-services.com\/blog\/jenkins-how-to-create-a-cyclic-job\/\" \/>\n<meta property=\"og:site_name\" content=\"dbi Blog\" \/>\n<meta property=\"article:published_time\" content=\"2020-11-03T13:42:03+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/JENKINS-CRON.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1567\" \/>\n\t<meta property=\"og:image:height\" content=\"399\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Middleware Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Middleware Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/jenkins-how-to-create-a-cyclic-job\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/jenkins-how-to-create-a-cyclic-job\/\"},\"author\":{\"name\":\"Middleware Team\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8d8563acfc6e604cce6507f45bac0ea1\"},\"headline\":\"Jenkins how to create a cyclic job\",\"datePublished\":\"2020-11-03T13:42:03+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/jenkins-how-to-create-a-cyclic-job\/\"},\"wordCount\":307,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/jenkins-how-to-create-a-cyclic-job\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/JENKINS-CRON.jpg\",\"articleSection\":[\"Control-M\",\"DevOps\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.dbi-services.com\/blog\/jenkins-how-to-create-a-cyclic-job\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/jenkins-how-to-create-a-cyclic-job\/\",\"url\":\"https:\/\/www.dbi-services.com\/blog\/jenkins-how-to-create-a-cyclic-job\/\",\"name\":\"Jenkins how to create a cyclic job - dbi Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/jenkins-how-to-create-a-cyclic-job\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/jenkins-how-to-create-a-cyclic-job\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/JENKINS-CRON.jpg\",\"datePublished\":\"2020-11-03T13:42:03+00:00\",\"author\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8d8563acfc6e604cce6507f45bac0ea1\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/jenkins-how-to-create-a-cyclic-job\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.dbi-services.com\/blog\/jenkins-how-to-create-a-cyclic-job\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/jenkins-how-to-create-a-cyclic-job\/#primaryimage\",\"url\":\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/JENKINS-CRON.jpg\",\"contentUrl\":\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/JENKINS-CRON.jpg\",\"width\":1567,\"height\":399},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/jenkins-how-to-create-a-cyclic-job\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\/\/www.dbi-services.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Jenkins how to create a cyclic job\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#website\",\"url\":\"https:\/\/www.dbi-services.com\/blog\/\",\"name\":\"dbi Blog\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8d8563acfc6e604cce6507f45bac0ea1\",\"name\":\"Middleware Team\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/ddcae7ba0f9d1a0e7ae707f0e689e4a9c95bb48ec49c8e6d9cc86d43f4121cb6?s=96&d=mm&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ddcae7ba0f9d1a0e7ae707f0e689e4a9c95bb48ec49c8e6d9cc86d43f4121cb6?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ddcae7ba0f9d1a0e7ae707f0e689e4a9c95bb48ec49c8e6d9cc86d43f4121cb6?s=96&d=mm&r=g\",\"caption\":\"Middleware Team\"},\"url\":\"https:\/\/www.dbi-services.com\/blog\/author\/middleware-team\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Jenkins how to create a cyclic job - dbi Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.dbi-services.com\/blog\/jenkins-how-to-create-a-cyclic-job\/","og_locale":"en_US","og_type":"article","og_title":"Jenkins how to create a cyclic job","og_description":"Introduction Hi everybody Today it&#8217;s not about Control-M jobs but about Jenkins jobs ,Jenkins allows you also to schedule jobs and below we will see how to make it cyclic. First , we will create a job using Jenkins graphic web interface How to create a job Connect to Jenkins interface with your login\/password -Select [&hellip;]","og_url":"https:\/\/www.dbi-services.com\/blog\/jenkins-how-to-create-a-cyclic-job\/","og_site_name":"dbi Blog","article_published_time":"2020-11-03T13:42:03+00:00","og_image":[{"width":1567,"height":399,"url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/JENKINS-CRON.jpg","type":"image\/jpeg"}],"author":"Middleware Team","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Middleware Team","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dbi-services.com\/blog\/jenkins-how-to-create-a-cyclic-job\/#article","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/jenkins-how-to-create-a-cyclic-job\/"},"author":{"name":"Middleware Team","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8d8563acfc6e604cce6507f45bac0ea1"},"headline":"Jenkins how to create a cyclic job","datePublished":"2020-11-03T13:42:03+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/jenkins-how-to-create-a-cyclic-job\/"},"wordCount":307,"commentCount":0,"image":{"@id":"https:\/\/www.dbi-services.com\/blog\/jenkins-how-to-create-a-cyclic-job\/#primaryimage"},"thumbnailUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/JENKINS-CRON.jpg","articleSection":["Control-M","DevOps"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.dbi-services.com\/blog\/jenkins-how-to-create-a-cyclic-job\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.dbi-services.com\/blog\/jenkins-how-to-create-a-cyclic-job\/","url":"https:\/\/www.dbi-services.com\/blog\/jenkins-how-to-create-a-cyclic-job\/","name":"Jenkins how to create a cyclic job - dbi Blog","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/jenkins-how-to-create-a-cyclic-job\/#primaryimage"},"image":{"@id":"https:\/\/www.dbi-services.com\/blog\/jenkins-how-to-create-a-cyclic-job\/#primaryimage"},"thumbnailUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/JENKINS-CRON.jpg","datePublished":"2020-11-03T13:42:03+00:00","author":{"@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8d8563acfc6e604cce6507f45bac0ea1"},"breadcrumb":{"@id":"https:\/\/www.dbi-services.com\/blog\/jenkins-how-to-create-a-cyclic-job\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dbi-services.com\/blog\/jenkins-how-to-create-a-cyclic-job\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dbi-services.com\/blog\/jenkins-how-to-create-a-cyclic-job\/#primaryimage","url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/JENKINS-CRON.jpg","contentUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/JENKINS-CRON.jpg","width":1567,"height":399},{"@type":"BreadcrumbList","@id":"https:\/\/www.dbi-services.com\/blog\/jenkins-how-to-create-a-cyclic-job\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/www.dbi-services.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Jenkins how to create a cyclic job"}]},{"@type":"WebSite","@id":"https:\/\/www.dbi-services.com\/blog\/#website","url":"https:\/\/www.dbi-services.com\/blog\/","name":"dbi Blog","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8d8563acfc6e604cce6507f45bac0ea1","name":"Middleware Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/ddcae7ba0f9d1a0e7ae707f0e689e4a9c95bb48ec49c8e6d9cc86d43f4121cb6?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/ddcae7ba0f9d1a0e7ae707f0e689e4a9c95bb48ec49c8e6d9cc86d43f4121cb6?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ddcae7ba0f9d1a0e7ae707f0e689e4a9c95bb48ec49c8e6d9cc86d43f4121cb6?s=96&d=mm&r=g","caption":"Middleware Team"},"url":"https:\/\/www.dbi-services.com\/blog\/author\/middleware-team\/"}]}},"_links":{"self":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/15023","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/users\/40"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/comments?post=15023"}],"version-history":[{"count":0,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/15023\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/media\/15029"}],"wp:attachment":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/media?parent=15023"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/categories?post=15023"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/tags?post=15023"},{"taxonomy":"type","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/type_dbi?post=15023"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}