{"id":30366,"date":"2015-12-09T09:28:44","date_gmt":"2015-12-09T03:58:44","guid":{"rendered":"https:\/\/2thenew.today\/blog\/?p=30366"},"modified":"2015-12-09T09:29:33","modified_gmt":"2015-12-09T03:59:33","slug":"springboot-applications-automation-using-jenkins","status":"publish","type":"post","link":"https:\/\/2thenew.today\/blog\/springboot-applications-automation-using-jenkins\/","title":{"rendered":"Springboot Applications automation using Jenkins"},"content":{"rendered":"<p>Building compressed files of Springboot application is a tedious task and its continuous deployment using Jenkins is even more so. To simplify the above predicament, a new Gradle plugin in Jenkins has been used. So, our objective in this blog \u00a0is to make use of the relation between Gradle and Springboot. Let us take it further.<\/p>\n<p>Primarily, the GRADLE tool for building a basic Springboot\u00a0application was used using Jenkins as a tool for continuous Integration. Firstly, the GRADLE PLUGIN in Jenkins was added. This was performed using the below flow of steps:<\/p>\n<p>[shell]Jenkins &gt;&gt; Manage Plugins &gt;&gt; Search for &quot;Gradle&quot; in the &quot;Available&quot; tab.&gt;&gt; Select &quot;Install without restart&quot;[\/shell]<\/p>\n<p>After the Plugin was successfully installed, a JOB was created and the GIT repository was defined as the SCM. Next, In the Build section the &#8220;Invoke Gradle\u00a0Script&#8221; option was selected.<\/p>\n<p>In this section, the various switches, tasks and also the &#8220;build.gradle&#8221;\u00a0file, in the case of \u00a0a separate build file, were defined.<\/p>\n<p>By defining a separate &#8220;build.gradle&#8221;, custom tasks can be added or the output compressed files such as jar or war are customized. A separate build.gradle file is used if one wants to use the same build file for multiple integrations in different Jenkins Jobs. Let&#8217;s say we want to overwrite a certain\u00a0parameter in the build file:<\/p>\n<p>[js]jar {<br \/>\n baseName = &#8216;Mynewapp&#8217;<br \/>\n version = &#8216;1.0&#8217;<br \/>\n}[\/js]<\/p>\n<p>If it was required to get the output jar file as test-1.0.jar , it could be passed \u00a0as an argument while the gradle\u00a0plugin in Jenkins was invoked.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-30589\" src=\"\/blog\/wp-ttn-blog\/uploads\/2015\/12\/rsz_jenkins.jpg\" alt=\"rsz_jenkins\" width=\"730\" height=\"361\" \/><\/p>\n<p>By the usage of \u00a0the -P switch\u00a0i.e project properties, the parameter that is to be passed can be overwritten in place of the current parameter. Thus, the output jar file as test-1.0.jar was obtained.<\/p>\n<p>Save the Jenkins job and then build to get the desired results. The build console output was noted as:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-30634\" src=\"\/blog\/wp-ttn-blog\/uploads\/2015\/12\/jenk2.png\" alt=\"jenk2\" width=\"958\" height=\"590\" \/><\/p>\n<p>The build resulted in a .jar file as test-1.0.jar that one could run easily using java along with the various JAVA_OPTIONS through the command line.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Building compressed files of Springboot application is a tedious task and its continuous deployment using Jenkins is even more so. To simplify the above predicament, a new Gradle plugin in Jenkins has been used. So, our objective in this blog \u00a0is to make use of the relation between Gradle and Springboot. Let us take it [&hellip;]<\/p>\n","protected":false},"author":178,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":5,"footnotes":""},"categories":[1],"tags":[2878,2877,1511,1682,2072],"class_list":["post-30366","post","type-post","status-publish","format-standard","hentry","category-technology","tag-automate","tag-build-gradle","tag-gradle","tag-jenkins","tag-springboot"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"Building compressed files of Springboot application is a tedious task and its continuous deployment using Jenkins is even more so. To simplify the above predicament, a new Gradle plugin in Jenkins has been used. So, our objective in this blog is to make use of the relation between Gradle and Springboot. Let us take it\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Prakashul\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/2thenew.today\/blog\/springboot-applications-automation-using-jenkins\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"TO THE NEW BLOG\" \/>\n\t\t<meta property=\"og:type\" content=\"blog\" \/>\n\t\t<meta property=\"og:title\" content=\"Springboot Applications automation using Jenkins | TO THE NEW Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"Building compressed files of Springboot application is a tedious task and its continuous deployment using Jenkins is even more so. To simplify the above predicament, a new Gradle plugin in Jenkins has been used. So, our objective in this blog is to make use of the relation between Gradle and Springboot. Let us take it\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/2thenew.today\/blog\/springboot-applications-automation-using-jenkins\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/2thenew.today\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/2thenew.today\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@tothenew\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Springboot Applications automation using Jenkins | TO THE NEW Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Building compressed files of Springboot application is a tedious task and its continuous deployment using Jenkins is even more so. To simplify the above predicament, a new Gradle plugin in Jenkins has been used. So, our objective in this blog is to make use of the relation between Gradle and Springboot. Let us take it\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/2thenew.today\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/springboot-applications-automation-using-jenkins\\\/#article\",\"name\":\"Springboot Applications automation using Jenkins | TO THE NEW Blog\",\"headline\":\"Springboot Applications automation using Jenkins\",\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/prakashul\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"\\\/blog\\\/wp-ttn-blog\\\/uploads\\\/2015\\\/12\\\/rsz_jenkins.jpg\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/springboot-applications-automation-using-jenkins\\\/#articleImage\"},\"datePublished\":\"2015-12-09T09:28:44+05:30\",\"dateModified\":\"2015-12-09T09:29:33+05:30\",\"inLanguage\":\"en-US\",\"commentCount\":1,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/springboot-applications-automation-using-jenkins\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/springboot-applications-automation-using-jenkins\\\/#webpage\"},\"articleSection\":\"Technology, automate, build.gradle, gradle, Jenkins, SpringBoot\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/springboot-applications-automation-using-jenkins\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/#listItem\",\"name\":\"Technology\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/#listItem\",\"position\":2,\"name\":\"Technology\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/springboot-applications-automation-using-jenkins\\\/#listItem\",\"name\":\"Springboot Applications automation using Jenkins\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/springboot-applications-automation-using-jenkins\\\/#listItem\",\"position\":3,\"name\":\"Springboot Applications automation using Jenkins\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/#listItem\",\"name\":\"Technology\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\",\"name\":\"TO THE NEW Blog\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/prakashul\\\/#author\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/prakashul\\\/\",\"name\":\"Prakashul\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/springboot-applications-automation-using-jenkins\\\/#authorImage\",\"url\":\"https:\\\/\\\/newersworld-sf-static.tothenew.net\\\/prod\\\/profilePicFolder\\\/c96b6a37-578a-4c32-bf49-82aa4b4d37f6_prakashul@tothenew.com.jpg\",\"width\":96,\"height\":96,\"caption\":\"Prakashul\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/springboot-applications-automation-using-jenkins\\\/#webpage\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/springboot-applications-automation-using-jenkins\\\/\",\"name\":\"Springboot Applications automation using Jenkins | TO THE NEW Blog\",\"description\":\"Building compressed files of Springboot application is a tedious task and its continuous deployment using Jenkins is even more so. To simplify the above predicament, a new Gradle plugin in Jenkins has been used. So, our objective in this blog is to make use of the relation between Gradle and Springboot. Let us take it\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/springboot-applications-automation-using-jenkins\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/prakashul\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/prakashul\\\/#author\"},\"datePublished\":\"2015-12-09T09:28:44+05:30\",\"dateModified\":\"2015-12-09T09:29:33+05:30\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\",\"name\":\"TO THE NEW Blog\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Springboot Applications automation using Jenkins | TO THE NEW Blog","description":"Building compressed files of Springboot application is a tedious task and its continuous deployment using Jenkins is even more so. To simplify the above predicament, a new Gradle plugin in Jenkins has been used. So, our objective in this blog is to make use of the relation between Gradle and Springboot. Let us take it","canonical_url":"https:\/\/2thenew.today\/blog\/springboot-applications-automation-using-jenkins\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/2thenew.today\/blog\/springboot-applications-automation-using-jenkins\/#article","name":"Springboot Applications automation using Jenkins | TO THE NEW Blog","headline":"Springboot Applications automation using Jenkins","author":{"@id":"https:\/\/2thenew.today\/blog\/author\/prakashul\/#author"},"publisher":{"@id":"https:\/\/2thenew.today\/blog\/#organization"},"image":{"@type":"ImageObject","url":"\/blog\/wp-ttn-blog\/uploads\/2015\/12\/rsz_jenkins.jpg","@id":"https:\/\/2thenew.today\/blog\/springboot-applications-automation-using-jenkins\/#articleImage"},"datePublished":"2015-12-09T09:28:44+05:30","dateModified":"2015-12-09T09:29:33+05:30","inLanguage":"en-US","commentCount":1,"mainEntityOfPage":{"@id":"https:\/\/2thenew.today\/blog\/springboot-applications-automation-using-jenkins\/#webpage"},"isPartOf":{"@id":"https:\/\/2thenew.today\/blog\/springboot-applications-automation-using-jenkins\/#webpage"},"articleSection":"Technology, automate, build.gradle, gradle, Jenkins, SpringBoot"},{"@type":"BreadcrumbList","@id":"https:\/\/2thenew.today\/blog\/springboot-applications-automation-using-jenkins\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog#listItem","position":1,"name":"Home","item":"https:\/\/2thenew.today\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog\/category\/technology\/#listItem","name":"Technology"}},{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog\/category\/technology\/#listItem","position":2,"name":"Technology","item":"https:\/\/2thenew.today\/blog\/category\/technology\/","nextItem":{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog\/springboot-applications-automation-using-jenkins\/#listItem","name":"Springboot Applications automation using Jenkins"},"previousItem":{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog\/springboot-applications-automation-using-jenkins\/#listItem","position":3,"name":"Springboot Applications automation using Jenkins","previousItem":{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog\/category\/technology\/#listItem","name":"Technology"}}]},{"@type":"Organization","@id":"https:\/\/2thenew.today\/blog\/#organization","name":"TO THE NEW Blog","url":"https:\/\/2thenew.today\/blog\/"},{"@type":"Person","@id":"https:\/\/2thenew.today\/blog\/author\/prakashul\/#author","url":"https:\/\/2thenew.today\/blog\/author\/prakashul\/","name":"Prakashul","image":{"@type":"ImageObject","@id":"https:\/\/2thenew.today\/blog\/springboot-applications-automation-using-jenkins\/#authorImage","url":"https:\/\/newersworld-sf-static.tothenew.net\/prod\/profilePicFolder\/c96b6a37-578a-4c32-bf49-82aa4b4d37f6_prakashul@tothenew.com.jpg","width":96,"height":96,"caption":"Prakashul"}},{"@type":"WebPage","@id":"https:\/\/2thenew.today\/blog\/springboot-applications-automation-using-jenkins\/#webpage","url":"https:\/\/2thenew.today\/blog\/springboot-applications-automation-using-jenkins\/","name":"Springboot Applications automation using Jenkins | TO THE NEW Blog","description":"Building compressed files of Springboot application is a tedious task and its continuous deployment using Jenkins is even more so. To simplify the above predicament, a new Gradle plugin in Jenkins has been used. So, our objective in this blog is to make use of the relation between Gradle and Springboot. Let us take it","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/2thenew.today\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/2thenew.today\/blog\/springboot-applications-automation-using-jenkins\/#breadcrumblist"},"author":{"@id":"https:\/\/2thenew.today\/blog\/author\/prakashul\/#author"},"creator":{"@id":"https:\/\/2thenew.today\/blog\/author\/prakashul\/#author"},"datePublished":"2015-12-09T09:28:44+05:30","dateModified":"2015-12-09T09:29:33+05:30"},{"@type":"WebSite","@id":"https:\/\/2thenew.today\/blog\/#website","url":"https:\/\/2thenew.today\/blog\/","name":"TO THE NEW Blog","inLanguage":"en-US","publisher":{"@id":"https:\/\/2thenew.today\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"TO THE NEW BLOG","og:type":"blog","og:title":"Springboot Applications automation using Jenkins | TO THE NEW Blog","og:description":"Building compressed files of Springboot application is a tedious task and its continuous deployment using Jenkins is even more so. To simplify the above predicament, a new Gradle plugin in Jenkins has been used. So, our objective in this blog is to make use of the relation between Gradle and Springboot. Let us take it","og:url":"https:\/\/2thenew.today\/blog\/springboot-applications-automation-using-jenkins\/","og:image":"https:\/\/2thenew.today\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","og:image:secure_url":"https:\/\/2thenew.today\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","twitter:card":"summary","twitter:site":"@tothenew","twitter:title":"Springboot Applications automation using Jenkins | TO THE NEW Blog","twitter:description":"Building compressed files of Springboot application is a tedious task and its continuous deployment using Jenkins is even more so. To simplify the above predicament, a new Gradle plugin in Jenkins has been used. So, our objective in this blog is to make use of the relation between Gradle and Springboot. Let us take it","twitter:image":"https:\/\/2thenew.today\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png"},"aioseo_meta_data":{"post_id":"30366","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":"","og_description":"","og_object_type":"blog","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":"","og_article_tags":"","twitter_use_og":false,"twitter_card":"summary","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2021-04-29 18:55:35","updated":"2024-02-29 09:30:26","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/2thenew.today\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/2thenew.today\/blog\/category\/technology\/\" title=\"Technology\">Technology<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tSpringboot Applications automation using Jenkins\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/2thenew.today\/blog"},{"label":"Technology","link":"https:\/\/2thenew.today\/blog\/category\/technology\/"},{"label":"Springboot Applications automation using Jenkins","link":"https:\/\/2thenew.today\/blog\/springboot-applications-automation-using-jenkins\/"}],"_links":{"self":[{"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/posts\/30366","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/users\/178"}],"replies":[{"embeddable":true,"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/comments?post=30366"}],"version-history":[{"count":0,"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/posts\/30366\/revisions"}],"wp:attachment":[{"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/media?parent=30366"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/categories?post=30366"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/tags?post=30366"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}