{"id":411,"date":"2018-08-23T12:53:39","date_gmt":"2018-08-23T07:23:39","guid":{"rendered":"http:\/\/nxglabs.in\/etech\/?p=411"},"modified":"2018-08-27T12:28:53","modified_gmt":"2018-08-27T06:58:53","slug":"setup-jenkins-continuous-integration-continuous-delivery-android-apps-ubuntu","status":"publish","type":"post","link":"https:\/\/nxglabs.in\/etech\/setup-jenkins-continuous-integration-continuous-delivery-android-apps-ubuntu\/","title":{"rendered":"Setup Jenkins for Continuous Integration and Continuous Delivery of Android Apps on Ubuntu"},"content":{"rendered":"<h3><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-286\" src=\"http:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/07\/jenkins.png\" alt=\"\" width=\"200\" height=\"200\" srcset=\"https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/07\/jenkins.png 800w, https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/07\/jenkins-150x150.png 150w, https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/07\/jenkins-300x300.png 300w, https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/07\/jenkins-768x768.png 768w\" sizes=\"(max-width: 200px) 100vw, 200px\" \/><\/h3>\n<p><span style=\"font-weight: 400\">In this Article, our Jenkins tutorial will explain you in detail to how can we set up an\u00a0Android app in Jenkins using continuous integration tools and continuous delivery tools. <\/span><\/p>\n<h3><b>Jenkins <\/b><b>Android Apps Setup <\/b><b>Prerequisites:<\/b><\/h3>\n<p><span style=\"font-weight: 400\">To begin with the setup, it is important that you\u2019ll need the necessarily following steps to move to the next phase:<\/span><\/p>\n<p>1. Required 64 bit Linux OS.<\/p>\n<p>2. Java must be installed on your system.<\/p>\n<p>7. Git must be installed on your system.<\/p>\n<p>3. You need to have an account of GIT.<\/p>\n<p>4.\u00a0 Jenkins must be installed on your system.<\/p>\n<p>5. Android SDK tools must be installed on your system.<\/p>\n<p>6. You need to set android SDK tools path.<\/p>\n<p>7. Set all the necessary setting in Jenkins.\u00a0<span style=\"font-weight: 400\">(If you haven\u2019t already installed Jenkins, you can follow our blog<\/span>\u00a0<em><a href=\"http:\/\/nxglabs.in\/etech\/how-to-install-jenkins-on-ubuntu\/\"><strong>How to install Jenkins on Ubuntu<\/strong><\/a><\/em>)<\/p>\n<p>8. You need to <strong>configure Android SDK tool path in your Jenkins setting<\/strong><\/p>\n<p><span style=\"font-weight: 400\">Now, after completing the setup steps, you\u2019ll need to configure Android SDK tool path in your Jenkins setting to pull, compile and run android projects.<\/span><\/p>\n<p>8.1 Enter Jenkins URL in the browser. The Jenkins login page will open<\/p>\n<p>http:\/\/localhost:8080\/<\/p>\n<figure id=\"attachment_265\" aria-describedby=\"caption-attachment-265\" style=\"width: 1005px\" class=\"wp-caption alignnone\"><img decoding=\"async\" loading=\"lazy\" class=\"wp-image-265\" title=\"Jenkins Login Page\" src=\"http:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/07\/img24.png\" alt=\"\" width=\"1005\" height=\"572\" srcset=\"https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/07\/img24.png 1533w, https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/07\/img24-300x171.png 300w, https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/07\/img24-768x437.png 768w, https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/07\/img24-1024x583.png 1024w, https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/07\/img24-800x456.png 800w\" sizes=\"(max-width: 1005px) 100vw, 1005px\" \/><figcaption id=\"caption-attachment-265\" class=\"wp-caption-text\">Jenkins Login Page<\/figcaption><\/figure>\n<p>8.2 Enter your valid credentials to login in <strong>Jenkins<\/strong>.<\/p>\n<p><strong>Username:<\/strong> <em><strong>Your Jenkins account username<\/strong><\/em><\/p>\n<p><strong>Password:<\/strong> <em><strong>Your Jenkins account password<\/strong><\/em><\/p>\n<p>8.3 If valid credentials are entered then Jenkins dashboard will display.<\/p>\n<figure id=\"attachment_493\" aria-describedby=\"caption-attachment-493\" style=\"width: 1009px\" class=\"wp-caption alignnone\"><img decoding=\"async\" loading=\"lazy\" class=\"wp-image-493\" title=\"Jenkins dashboard\" src=\"http:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-13-12-38-56.png\" alt=\"\" width=\"1009\" height=\"575\" srcset=\"https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-13-12-38-56.png 1533w, https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-13-12-38-56-300x171.png 300w, https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-13-12-38-56-768x437.png 768w, https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-13-12-38-56-1024x583.png 1024w, https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-13-12-38-56-800x456.png 800w\" sizes=\"(max-width: 1009px) 100vw, 1009px\" \/><figcaption id=\"caption-attachment-493\" class=\"wp-caption-text\">Jenkins dashboard<\/figcaption><\/figure>\n<p>8.4 Click on Manage Jenkins<\/p>\n<p>8.5 Click on configure system<\/p>\n<figure id=\"attachment_457\" aria-describedby=\"caption-attachment-457\" style=\"width: 1015px\" class=\"wp-caption alignnone\"><img decoding=\"async\" loading=\"lazy\" class=\"wp-image-457\" title=\"configure system - jenkins\" src=\"http:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-09-14-21-39.png\" alt=\"\" width=\"1015\" height=\"578\" srcset=\"https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-09-14-21-39.png 1533w, https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-09-14-21-39-300x171.png 300w, https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-09-14-21-39-768x437.png 768w, https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-09-14-21-39-1024x583.png 1024w, https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-09-14-21-39-800x456.png 800w\" sizes=\"(max-width: 1015px) 100vw, 1015px\" \/><figcaption id=\"caption-attachment-457\" class=\"wp-caption-text\">configure system &#8211; jenkins<\/figcaption><\/figure>\n<p>8.6 Global properties:<\/p>\n<p>Environment variables(You have to set Android SDK\u2019s path):<\/p>\n<ul>\n<li>\u00a0<strong>Name:<\/strong> <em><strong>ANDROID_HOME<\/strong><\/em><\/li>\n<li>\u00a0<strong>Value:<\/strong> <strong><em>\/home\/shekhar\/sdk-tools-linux-3859397<\/em><\/strong><\/li>\n<\/ul>\n<figure id=\"attachment_458\" aria-describedby=\"caption-attachment-458\" style=\"width: 1020px\" class=\"wp-caption alignnone\"><img decoding=\"async\" loading=\"lazy\" class=\"wp-image-458\" title=\"Global properties - jenkins\" src=\"http:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-09-14-27-55.png\" alt=\"\" width=\"1020\" height=\"581\" srcset=\"https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-09-14-27-55.png 1533w, https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-09-14-27-55-300x171.png 300w, https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-09-14-27-55-768x437.png 768w, https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-09-14-27-55-1024x583.png 1024w, https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-09-14-27-55-800x456.png 800w\" sizes=\"(max-width: 1020px) 100vw, 1020px\" \/><figcaption id=\"caption-attachment-458\" class=\"wp-caption-text\">Global properties &#8211; jenkins<\/figcaption><\/figure>\n<p>9. Jenkinsfile must be added in your Git repository.<\/p>\n<h4>What is Jenkinsfile?<\/h4>\n<p>Jenkinsfile is nothing but <em><strong>workflow\u00a0of your Jenkins project<\/strong><\/em>. Jenkinsfile consists of a script that defines continuous integration pipeline logic with steps to build, test and deploy of the project.<\/p>\n<p><b>Here is the Sample syntax of Jenkinsfile:<\/b><\/p>\n<p>pipeline {<\/p>\n<p>agent {<\/p>\n<p>label &#8220;master&#8221;<\/p>\n<p>}<\/p>\n<p>stages {<\/p>\n<p>Build stage{<\/p>\n<p>Build steps {<\/p>\n<p>\/\/Specify branch name<\/p>\n<p>\/\/Steps to build APK of a given project i.e. Debug, Release, all, etc.<\/p>\n<p>}<\/p>\n<p>Build status {<\/p>\n<p>\/\/Build generation is passed or failed<\/p>\n<p>}<\/p>\n<p>}<\/p>\n<p>Upload stage {<\/p>\n<p>\/\/Upload generated\u00a0build automatically on the server<\/p>\n<p>Upload steps {<\/p>\n<p>\/\/Steps to upload generated build on the server<\/p>\n<p>}<\/p>\n<p>Upload status {<\/p>\n<p>\/\/Build upload status i.e. Build upload is successfully passed or failed<\/p>\n<p>}<\/p>\n<p>}<\/p>\n<p>Email stage {<\/p>\n<p>\/\/Send generated APK and log automatically via mail<\/p>\n<p>Email steps {<\/p>\n<p>\/\/Steps to send email<\/p>\n<p>\/\/Email id of recipients<\/p>\n<p>}<\/p>\n<p>Email status {<\/p>\n<p>\/\/Email sending status i.e.Email is successfully sent or not<\/p>\n<p>}<\/p>\n<p>}<\/p>\n<p>}<\/p>\n<p>}<\/p>\n<h3>Steps to setup android project in Jenkins:<\/h3>\n<p>Now, to add new android project follow the below steps:<\/p>\n<p>1. Click on New Item<\/p>\n<p>2. Enter the project name in the given text box<\/p>\n<figure id=\"attachment_460\" aria-describedby=\"caption-attachment-460\" style=\"width: 1013px\" class=\"wp-caption alignnone\"><img decoding=\"async\" loading=\"lazy\" class=\"wp-image-460\" title=\"setup android project - jenkins\" src=\"http:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-09-11-39-24.png\" alt=\"\" width=\"1013\" height=\"577\" srcset=\"https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-09-11-39-24.png 1533w, https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-09-11-39-24-300x171.png 300w, https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-09-11-39-24-768x437.png 768w, https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-09-11-39-24-1024x583.png 1024w, https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-09-11-39-24-800x456.png 800w\" sizes=\"(max-width: 1013px) 100vw, 1013px\" \/><figcaption id=\"caption-attachment-460\" class=\"wp-caption-text\">setup android project &#8211; jenkins<\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<p>3. Select <em><strong>Multibranch Pipeline<\/strong><\/em> as the project type.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-461\" title=\"Multibranch Pipeline\" src=\"http:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-09-11-39-33.png\" alt=\"\" width=\"1018\" height=\"580\" srcset=\"https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-09-11-39-33.png 1533w, https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-09-11-39-33-300x171.png 300w, https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-09-11-39-33-768x437.png 768w, https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-09-11-39-33-1024x583.png 1024w, https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-09-11-39-33-800x456.png 800w\" sizes=\"(max-width: 1018px) 100vw, 1018px\" \/><\/p>\n<p>4. Click on Ok button<\/p>\n<p>5. Then you need to <strong><em>configure some settings for your android project<\/em><\/strong>.<\/p>\n<h5><strong>\u00a0 General<\/strong><\/h5>\n<ul>\n<li>\u00a0\u00a0\u00a0\u00a0 Name: Your project name will be displayed here<\/li>\n<li>\u00a0\u00a0\u00a0\u00a0 Display name: The optional display name is shown for the project throughout the Jenkins web GUI(Optional)<\/li>\n<li>\u00a0 \u00a0 \u00a0Description: Description\u00a0of the project. (Optional)<\/li>\n<\/ul>\n<h5><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-494\" title=\"General setting\" src=\"http:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-13-12-40-45.png\" alt=\"\" width=\"1027\" height=\"585\" srcset=\"https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-13-12-40-45.png 1533w, https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-13-12-40-45-300x171.png 300w, https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-13-12-40-45-768x437.png 768w, https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-13-12-40-45-1024x583.png 1024w, https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-13-12-40-45-800x456.png 800w\" sizes=\"(max-width: 1027px) 100vw, 1027px\" \/><\/h5>\n<h5><strong>\u00a0 Branch Sources<\/strong><\/h5>\n<p>Add source: Git (<em>Because we have used Git repository as source control for our project<\/em>)<\/p>\n<h6><strong>\u00a0 Git<\/strong><\/h6>\n<ul>\n<li>\u00a0Project Repository:\u00a0Enter the Git repository URL of the project<\/li>\n<li>Credentials:<\/li>\n<\/ul>\n<ol>\n<li>\u00a0Click on Add button<\/li>\n<li>Enter your Git username<\/li>\n<li>Enter your Git password<\/li>\n<li>Click on add button<\/li>\n<li>Once your credentials are saved then for next project you can also select credentials from the drop-down.<\/li>\n<\/ol>\n<h5><\/h5>\n<h5><img decoding=\"async\" loading=\"lazy\" class=\"alignnone  wp-image-730\" src=\"http:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-13-12-41-11-1.png\" alt=\"\" width=\"1028\" height=\"585\" srcset=\"https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-13-12-41-11-1.png 1533w, https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-13-12-41-11-1-300x171.png 300w, https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-13-12-41-11-1-768x437.png 768w, https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-13-12-41-11-1-1024x583.png 1024w, https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-13-12-41-11-1-800x456.png 800w\" sizes=\"(max-width: 1028px) 100vw, 1028px\" \/><\/h5>\n<h5>\u00a0 Build Configuration<\/h5>\n<ul>\n<li>\u00a0\u00a0\u00a0\u00a0 Mode: By Jenkinsfile<\/li>\n<li>\u00a0\u00a0\u00a0\u00a0 Script path: Jenkinsfile\u00a0( Relative location within the checkout of your Pipeline script.All your functionality you need to perform while building the application will be scripted in Jenkinsfile)<\/li>\n<\/ul>\n<p>6. Click on <strong>Apply<\/strong> button.<\/p>\n<p>7.\u00a0Click on <strong>Save<\/strong> button.<\/p>\n<p>8. Your Jenkins multibranch pipeline project will be displayed\u00a0and If your source code is correct then your build will be started automatically.<\/p>\n<h5><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-497\" title=\"pipeline project\" src=\"http:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-13-12-41-19.png\" alt=\"\" width=\"1033\" height=\"588\" srcset=\"https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-13-12-41-19.png 1533w, https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-13-12-41-19-300x171.png 300w, https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-13-12-41-19-768x437.png 768w, https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-13-12-41-19-1024x583.png 1024w, https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-13-12-41-19-800x456.png 800w\" sizes=\"(max-width: 1033px) 100vw, 1033px\" \/><\/h5>\n<p>&nbsp;<\/p>\n<p><strong>Note: If the build is not started automatically then start it manually by clicking on <em>Scan Multibranch Pipeline Now.<\/em><\/strong><\/p>\n<p>9. APK will be built automatically for the branch on which commit is done. i.e. master,staging,etc.<\/p>\n<p><strong>e.g. 1. Single branch(master)<\/strong><\/p>\n<h4><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-498\" title=\"pipeline - single branch\" src=\"http:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-13-12-41-36.png\" alt=\"\" width=\"1038\" height=\"591\" srcset=\"https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-13-12-41-36.png 1533w, https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-13-12-41-36-300x171.png 300w, https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-13-12-41-36-768x437.png 768w, https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-13-12-41-36-1024x583.png 1024w, https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-13-12-41-36-800x456.png 800w\" sizes=\"(max-width: 1038px) 100vw, 1038px\" \/><\/h4>\n<p>&nbsp;<\/p>\n<h4><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-499\" title=\"pipeline master\" src=\"http:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-13-12-41-39.png\" alt=\"\" width=\"1042\" height=\"593\" srcset=\"https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-13-12-41-39.png 1533w, https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-13-12-41-39-300x171.png 300w, https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-13-12-41-39-768x437.png 768w, https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-13-12-41-39-1024x583.png 1024w, https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-13-12-41-39-800x456.png 800w\" sizes=\"(max-width: 1042px) 100vw, 1042px\" \/><\/h4>\n<p><strong>e.g. 2. Multiple branches(master and staging)<\/strong><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-504\" title=\"pipeline multiple branches\" src=\"http:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-13-14-27-45.png\" alt=\"\" width=\"1045\" height=\"595\" srcset=\"https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-13-14-27-45.png 1533w, https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-13-14-27-45-300x171.png 300w, https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-13-14-27-45-768x437.png 768w, https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-13-14-27-45-1024x583.png 1024w, https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-13-14-27-45-800x456.png 800w\" sizes=\"(max-width: 1045px) 100vw, 1045px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h4><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-507\" title=\"multiple branches - pipeline\" src=\"http:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-13-14-29-01.png\" alt=\"\" width=\"1047\" height=\"596\" srcset=\"https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-13-14-29-01.png 1533w, https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-13-14-29-01-300x171.png 300w, https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-13-14-29-01-768x437.png 768w, https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-13-14-29-01-1024x583.png 1024w, https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-13-14-29-01-800x456.png 800w\" sizes=\"(max-width: 1047px) 100vw, 1047px\" \/><\/h4>\n<p>10. You can check the status of builds on any branch by clicking on the specific branch name.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-505\" title=\"pipeline master\" src=\"http:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-13-14-28-46.png\" alt=\"\" width=\"1048\" height=\"597\" srcset=\"https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-13-14-28-46.png 1533w, https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-13-14-28-46-300x171.png 300w, https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-13-14-28-46-768x437.png 768w, https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-13-14-28-46-1024x583.png 1024w, https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-13-14-28-46-800x456.png 800w\" sizes=\"(max-width: 1048px) 100vw, 1048px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h4><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-506\" title=\"pipeline stagging\" src=\"http:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-13-14-28-54.png\" alt=\"\" width=\"1047\" height=\"596\" srcset=\"https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-13-14-28-54.png 1533w, https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-13-14-28-54-300x171.png 300w, https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-13-14-28-54-768x437.png 768w, https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-13-14-28-54-1024x583.png 1024w, https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-13-14-28-54-800x456.png 800w\" sizes=\"(max-width: 1047px) 100vw, 1047px\" \/><\/h4>\n<p>11. You can see the result of a build i.e. success\/failure on the console output.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone  wp-image-734\" src=\"http:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-13-12-43-10-e1535352556527.png\" alt=\"\" width=\"1047\" height=\"596\" srcset=\"https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-13-12-43-10-e1535352556527.png 1533w, https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-13-12-43-10-e1535352556527-300x171.png 300w, https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-13-12-43-10-e1535352556527-768x437.png 768w, https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-13-12-43-10-e1535352556527-1024x583.png 1024w, https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-13-12-43-10-e1535352556527-800x456.png 800w\" sizes=\"(max-width: 1047px) 100vw, 1047px\" \/><\/p>\n<h4><\/h4>\n<p>12. You will also receive <strong>an email of success\/failure builds with generated APK and logs<\/strong>. For that, you have to configure your email id in the Jenkinsfile. You can configure multiple email id&#8217;s in the Jenkinsfile.<\/p>\n<h4><img decoding=\"async\" loading=\"lazy\" class=\"alignnone  wp-image-735\" src=\"http:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-13-17-42-59-copy-e1535352646735.png\" alt=\"\" width=\"1047\" height=\"589\" srcset=\"https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-13-17-42-59-copy-e1535352646735.png 1346w, https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-13-17-42-59-copy-e1535352646735-300x169.png 300w, https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-13-17-42-59-copy-e1535352646735-768x432.png 768w, https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-13-17-42-59-copy-e1535352646735-1024x576.png 1024w, https:\/\/nxglabs.in\/etech\/wp-content\/uploads\/2018\/08\/Screenshot-from-2018-08-13-17-42-59-copy-e1535352646735-800x450.png 800w\" sizes=\"(max-width: 1047px) 100vw, 1047px\" \/><\/h4>\n<h4 style=\"text-align: left\">Thank You..!<\/h4>\n","protected":false},"excerpt":{"rendered":"<p>In this Article, our Jenkins tutorial will explain you in detail to how can we set up an\u00a0Android app in Jenkins using continuous integration tools and continuous delivery tools. Jenkins Android Apps Setup Prerequisites: To begin with the setup, it is important that you\u2019ll need the necessarily following steps to move to the next phase: &hellip;<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[2],"tags":[38,35,19,18,36,20,37,22,24],"_links":{"self":[{"href":"https:\/\/nxglabs.in\/etech\/wp-json\/wp\/v2\/posts\/411"}],"collection":[{"href":"https:\/\/nxglabs.in\/etech\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nxglabs.in\/etech\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nxglabs.in\/etech\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/nxglabs.in\/etech\/wp-json\/wp\/v2\/comments?post=411"}],"version-history":[{"count":66,"href":"https:\/\/nxglabs.in\/etech\/wp-json\/wp\/v2\/posts\/411\/revisions"}],"predecessor-version":[{"id":745,"href":"https:\/\/nxglabs.in\/etech\/wp-json\/wp\/v2\/posts\/411\/revisions\/745"}],"wp:attachment":[{"href":"https:\/\/nxglabs.in\/etech\/wp-json\/wp\/v2\/media?parent=411"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nxglabs.in\/etech\/wp-json\/wp\/v2\/categories?post=411"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nxglabs.in\/etech\/wp-json\/wp\/v2\/tags?post=411"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}