SlideShare a Scribd company logo
 
 
 
 
 
 
 
 
 
 
Jenkins Setup Document
 
   
BrainBox Network. Copyright@2015. All rights reserved
 
 
The document provides steps to integrate Android Application with Jenkins.
The integration process requires following steps ‐
1. System Requirements
2. Download Jenkins
3. Starting Jenkins
4. How to Install Tomcat in Windows
5. Configure Apache with Jenkins
6. Jenkins First Look
7. Configuration
8. JDK Setup
9. PlugIn Installation
10. List of Necessary Plugins 
11. Jenkins New Project Setup
12. Get Project from Repository
13. Build Android Project
14. Email Notification
15. Advanced Setting
16. Set Success Trigger
17. Setup Notification Detail
18. Set Failure Trigger
19. Setup Notification Detail
20. Project Build Error
21. Build the Project
BrainBox Network. Copyright@2015. All rights reserved
 
 
SYSTEM REQUIREMENTS 
 
➔ JDK :​JDK 1.5 or above
➔ Memory:​2GB RAM (recommended)
➔ Disk Space:​No minimum requirement. Note that since all builds will be stored on the Jenkins
machines, it has to be ensured that sufficient disk space is available for build storage.
➔ Operating System Version:​Jenkins can be installed on Windows, Ubuntu/Debian, Red
Hat/Fedora/CentOS, Mac OS X, openSUSE, FReeBSD, OpenBSD, Gentoo.
➔ Java Container:​The WAR file can be run in any container that supports Servlet 2.4/JSP 2.0 or
later.(An example is ​TOMCAT/APACHE​).
BrainBox Network. Copyright@2015. All rights reserved
 
 
DOWNLOAD JENKINS 
 
➔ Open Given Link :​​https://jenkins‐ci.org/
➔ Download Jenkins for system
BrainBox Network. Copyright@2015. All rights reserved
 
 
STARTING JENKINS 
➔ Open the command prompt,
➔ Browse to the directory where the “Jenkins.war” file is present.
➔ Run the following command:
Mostly Jenkins installation directory location is:​C:Program Files (x86)Jenkins
​Command:​Java –jar Jenkins.war
➔ Accessing Jenkins:​ ​Once Jenkins is up and running,  
You can access Jenkins from the link − ​http://localhost:8080
 
BrainBox Network. Copyright@2015. All rights reserved
 
 
HOW TO INSTALL TOMCAT IN WINDOWS MACHINE 
 
➔ Link ​https://tomcat.apache.org/download‐70.cgi​use for download the tomcat.
➔ Then unzip the contents of the downloaded zip file and install.
BrainBox Network. Copyright@2015. All rights reserved
 
 
CONFIGURE APACHE WITH JENKINS 
 
➔ Copy the ​Jenkis.war​file and PASTE it to the webapps folder in the tomcat folder.
➔ Now open the​​command prompt
➔ Browse to the bin directory in this folder and run the start.bat file
E:Appstomcat7bin>startup.bat
➔ Then open ​http://localhost/jenkins
BrainBox Network. Copyright@2015. All rights reserved
 
 
JENKINS FIRST LOOK 
BrainBox Network. Copyright@2015. All rights reserved
 
 
CONFIGURATION 
 
➔ Click on “Manage Jenkins” link, showing in left side bar of the screen.
➔ Click on “Configuration Setting”, showing in the container part of the screen.
 
BrainBox Network. Copyright@2015. All rights reserved
 
 
JDK SETUP 
 
➔ Click on “JDK Installations” button
➔ Set JDK path, where you want the install JDK in your machine.
➔ Then click “Save”
BrainBox Network. Copyright@2015. All rights reserved
 
 
➔ Then click on “Available” button
➔ Then put the “Go to next Slide” in your “Filter” showing in right top corner.
➔ Check and select Plugin,
➔ Then Click “Download now and install after restart” button
BrainBox Network. Copyright@2015. All rights reserved
 
 
INSTALL PLUGIN 
➔ Click on “Manage Plugin” icon, it is located in container part of the screen.
 
 
 
 
BrainBox Network. Copyright@2015. All rights reserved
 
 
LIST FOR NECESSARY PLUGINS 
 
1. Credentials Plugin
2. Email Extension Plugin
3. Google Authenticated Source plugin
4. Google Login Plugin
5. Google OAuth Credentials plugin
6. Gradle plugin
7. Subversion Plug‐in
8. OAuth Credentials plugin
9. SSH Credentials Plugin
➔ Go to “Configure System”
➔ Go to extended email notification
➔ Click “Advanced”
➔ Fill in blank:
1. SMTP server ‐> smtp.gmail.com (Mandatory)
2. Use SMTP Authentication ‐> CHECK TRUE (Mandatory)
3. USER NAME ‐> <YOUR_EMAIL_ID> (Mandatory)
4. PASSWORD ‐> <YOUR_EMAIL_ID_PASSWORD> (Mandatory)
5. USE SSL ‐> CHECK TRUE (Mandatory)
6. SMTP PORT ‐> 465 (Mandatory)
7. Default Recipients ‐> <ANY EMAIL ID> (Mandatory)
➔ Save and Restart.
BrainBox Network. Copyright@2015. All rights reserved
 
 
JENKINS NEW PROJECT SETUP 
➔ OPEN ​http://localhost:8080/
➔ Create new Job:​Click on “New Item”
➔ Enter your project name in “Item Name” text box
➔ Check true “Freestyle project”
➔ Press “OK”
BrainBox Network. Copyright@2015. All rights reserved
 
 
GET PROJECT FROM  REPOSITORY 
 
 
➔ Go to “Source Code Management” block
➔ Select “Subversion”
➔ Enter Repository Url”
➔ Insert “Use Svn update as much as possible” in the “Check‐out Strategy” field
➔ Press “Apply”
➔ In first time Svn setup you also configure Svn credential
➔ Click “Enter Credentials”, and enter your Svn credentials
BrainBox Network. Copyright@2015. All rights reserved
 
 
BUILD ANDROID PROJECT 
 
 
 
➔ Go To “Build Tag”
➔ Click on “Add Build Setup”
➔
➔ Select “Execute windows batch command”
➔ Paste below code in Command Prompt:
​gradlew.bat assembleDebug
➔ ADD ONE MORE COMMAND BOX by clicking on “Add build step” and paste below code
➔ if exist temp rmdir temp /S /Q
➔ if not exist temp mkdir temp
copy /Y "%WORKSPACE%appbuildoutputsapk<YOUR_APK_NAME>.apk"
"temp<YOUR_APK_NAME>_%BUILD_NUMBER%.apk"
move /Y "%WORKSPACE%appbuildoutputsapk<YOUR_APK_NAME>.apk"
"c:Program Files (x86)JenkinsuserContent"
➔ As shown below :‐
BrainBox Network. Copyright@2015. All rights reserved
 
 
➔ Press “Apply”.
EMAIL NOTIFICATION 
 
➔ NOTIFICATION ON SUCCESS BUILD (SEND APK WITH NOTIFICATION)
1. Go To post build action tag
2. Select “Add Post build action”
3. Select “Editable Email Notification”
BrainBox Network. Copyright@2015. All rights reserved
 
 
ADVANCED SETTING 
 
 
 
➔ Click on “Advanced Setting”
BrainBox Network. Copyright@2015. All rights reserved
 
 
SET SUCCESS TRIGGER 
 
 
 
➔ Go To “Trigger” tag
➔ Press “Add Trigger”
➔ Select “success”
➔ Screen looks like below screen
➔ Select “Advanced”.
BrainBox Network. Copyright@2015. All rights reserved
 
 
SETUP NOTIFICATION DETAIL 
 
 
 
➔ Add “Recipient List” (Ex: ​mohit.mobifly@gmail.com​)
➔ Set “Subject” (Ex: $PROJECT_NAME ‐ $BUILD_NUMBER ‐ $BUILD_STATUS)
➔ Set “Content” :
​<html>
<body>
<h4>Build # $BUILD_NUMBER ‐ $BUILD_STATUS</h4>
<h4>APK Name: <YOUR_APK_NAME>_$BUILD_TYPE_ $BUILD_NUMBER .apk</h4>
</body>
</html>
➔ Add “Attachments”
Copy & Paste given code:​​(temp/*.apk)
➔ Set “Attach Build Log”: ​If you want to attach any bulid log, then you have to select “Attach
Build Log” otherwise select “Do Not Attach Build Log”
BrainBox Network. Copyright@2015. All rights reserved
 
 
SET FAILURE TRIGGER 
 
 
 
➔ Go To “Trigger Tag”
➔ Press “Add Trigger”
➔ Select “Failure”
➔ Your screen will looks like below shown screen
BrainBox Network. Copyright@2015. All rights reserved
 
 
SETUP NOTIFICATION DETAIL 
 
➔ ADD Recipient List​​(Ex: ​mohit.mobifly@gmail.com​)
➔ Set Subject (Ex: $PROJECT_NAME ‐ $BUILD_NUMBER ‐ $BUILD_STATUS)
➔ Set Content (<ANY INFORMATION>)
➔ Set “Attach Build Log” (Select “Attach Build Log”)
➔ Save and Build now.
BrainBox Network. Copyright@2015. All rights reserved
 
 
PROJECT BUILD ERROR 
➔ If during build a Project on jenkin , An exception occurs with message “The SDK directory
does not exist.”
As shown below :‐
➔ Then go through the jenkins directory of your system :
1. Open workspace folder under your project folder in jenkins directory
2. Update “local.properties” file with your local SDK path and save it.
 
   
BrainBox Network. Copyright@2015. All rights reserved
 
 
NOW BUILD THE PROJECT 
 
➔ On successful build of project.
➔ Find generated APK on your specified locations.
➔ Check your specified emails also.
BrainBox Network. Copyright@2015. All rights reserved
 
 
Thank You So Very Much
For queries please write on ​ashish@mobifly.in
Developed By
Mohit Saini
Android Developer ‐ Mobifly
mobifly.in
BrainBox Network. Copyright@2015. All rights reserved
 

More Related Content

What's hot

Realtime with-websockets-2015
Realtime with-websockets-2015Realtime with-websockets-2015
Realtime with-websockets-2015
ColdFusionConference
 
My Database Skills Killed the Server
My Database Skills Killed the ServerMy Database Skills Killed the Server
My Database Skills Killed the Server
ColdFusionConference
 
DevOops Redux Ken Johnson Chris Gates - AppSec USA 2016
DevOops Redux Ken Johnson Chris Gates  - AppSec USA 2016DevOops Redux Ken Johnson Chris Gates  - AppSec USA 2016
DevOops Redux Ken Johnson Chris Gates - AppSec USA 2016
Chris Gates
 
Take home your very own free Vagrant CFML Dev Environment - Presented at dev....
Take home your very own free Vagrant CFML Dev Environment - Presented at dev....Take home your very own free Vagrant CFML Dev Environment - Presented at dev....
Take home your very own free Vagrant CFML Dev Environment - Presented at dev....
Gavin Pickin
 
Gestione avanzata di WordPress con WP-CLI - WordCamp Torino 2017 - Andrea Car...
Gestione avanzata di WordPress con WP-CLI - WordCamp Torino 2017 - Andrea Car...Gestione avanzata di WordPress con WP-CLI - WordCamp Torino 2017 - Andrea Car...
Gestione avanzata di WordPress con WP-CLI - WordCamp Torino 2017 - Andrea Car...
Andrea Cardinali
 
First steps with Gutenberg for developers - WC Prague 2020
First steps with Gutenberg for developers - WC Prague 2020First steps with Gutenberg for developers - WC Prague 2020
First steps with Gutenberg for developers - WC Prague 2020
Magdalena Paciorek
 
HTTPS and HTTP/2
HTTPS and HTTP/2HTTPS and HTTP/2
HTTPS and HTTP/2
MatthewWalker9
 
Build, Deploy and Run Node Js Application on Azure using Docker
Build, Deploy and Run Node Js Application on Azure using DockerBuild, Deploy and Run Node Js Application on Azure using Docker
Build, Deploy and Run Node Js Application on Azure using Docker
Osama Mustafa
 
Continuous Integration and Deployment Patterns for Magento
Continuous Integration and Deployment Patterns for MagentoContinuous Integration and Deployment Patterns for Magento
Continuous Integration and Deployment Patterns for Magento
AOE
 
When Web meet Native App
When Web meet Native AppWhen Web meet Native App
When Web meet Native App
Yu-Wei Chuang
 
Writing a Jenkins / Hudson plugin
Writing a Jenkins / Hudson pluginWriting a Jenkins / Hudson plugin
Writing a Jenkins / Hudson plugin
Anthony Dahanne
 
WinOps meetup April 2016 DevOps lessons from Microsoft \\Build\
WinOps meetup April 2016   DevOps lessons from Microsoft \\Build\WinOps meetup April 2016   DevOps lessons from Microsoft \\Build\
WinOps meetup April 2016 DevOps lessons from Microsoft \\Build\
DevOpsGroup
 
DevOops & How I hacked you DevopsDays DC June 2015
DevOops & How I hacked you DevopsDays DC June 2015DevOops & How I hacked you DevopsDays DC June 2015
DevOops & How I hacked you DevopsDays DC June 2015
Chris Gates
 
Jenkins Plugin Development With Gradle And Groovy
Jenkins Plugin Development With Gradle And GroovyJenkins Plugin Development With Gradle And Groovy
Jenkins Plugin Development With Gradle And Groovy
Daniel Spilker
 
Testing Automaton - CFSummit 2016
Testing Automaton - CFSummit 2016Testing Automaton - CFSummit 2016
Testing Automaton - CFSummit 2016
Ortus Solutions, Corp
 
Automated ui-testing
Automated ui-testingAutomated ui-testing
Automated ui-testing
Slobodan Lohja
 
Continuous Integration with Hackintosh
Continuous Integration with HackintoshContinuous Integration with Hackintosh
Continuous Integration with Hackintosh
David Ventura, M.E.T.
 
Step by step guide for creating wordpress plugin
Step by step guide for creating wordpress pluginStep by step guide for creating wordpress plugin
Step by step guide for creating wordpress pluginMainak Goswami
 

What's hot (18)

Realtime with-websockets-2015
Realtime with-websockets-2015Realtime with-websockets-2015
Realtime with-websockets-2015
 
My Database Skills Killed the Server
My Database Skills Killed the ServerMy Database Skills Killed the Server
My Database Skills Killed the Server
 
DevOops Redux Ken Johnson Chris Gates - AppSec USA 2016
DevOops Redux Ken Johnson Chris Gates  - AppSec USA 2016DevOops Redux Ken Johnson Chris Gates  - AppSec USA 2016
DevOops Redux Ken Johnson Chris Gates - AppSec USA 2016
 
Take home your very own free Vagrant CFML Dev Environment - Presented at dev....
Take home your very own free Vagrant CFML Dev Environment - Presented at dev....Take home your very own free Vagrant CFML Dev Environment - Presented at dev....
Take home your very own free Vagrant CFML Dev Environment - Presented at dev....
 
Gestione avanzata di WordPress con WP-CLI - WordCamp Torino 2017 - Andrea Car...
Gestione avanzata di WordPress con WP-CLI - WordCamp Torino 2017 - Andrea Car...Gestione avanzata di WordPress con WP-CLI - WordCamp Torino 2017 - Andrea Car...
Gestione avanzata di WordPress con WP-CLI - WordCamp Torino 2017 - Andrea Car...
 
First steps with Gutenberg for developers - WC Prague 2020
First steps with Gutenberg for developers - WC Prague 2020First steps with Gutenberg for developers - WC Prague 2020
First steps with Gutenberg for developers - WC Prague 2020
 
HTTPS and HTTP/2
HTTPS and HTTP/2HTTPS and HTTP/2
HTTPS and HTTP/2
 
Build, Deploy and Run Node Js Application on Azure using Docker
Build, Deploy and Run Node Js Application on Azure using DockerBuild, Deploy and Run Node Js Application on Azure using Docker
Build, Deploy and Run Node Js Application on Azure using Docker
 
Continuous Integration and Deployment Patterns for Magento
Continuous Integration and Deployment Patterns for MagentoContinuous Integration and Deployment Patterns for Magento
Continuous Integration and Deployment Patterns for Magento
 
When Web meet Native App
When Web meet Native AppWhen Web meet Native App
When Web meet Native App
 
Writing a Jenkins / Hudson plugin
Writing a Jenkins / Hudson pluginWriting a Jenkins / Hudson plugin
Writing a Jenkins / Hudson plugin
 
WinOps meetup April 2016 DevOps lessons from Microsoft \\Build\
WinOps meetup April 2016   DevOps lessons from Microsoft \\Build\WinOps meetup April 2016   DevOps lessons from Microsoft \\Build\
WinOps meetup April 2016 DevOps lessons from Microsoft \\Build\
 
DevOops & How I hacked you DevopsDays DC June 2015
DevOops & How I hacked you DevopsDays DC June 2015DevOops & How I hacked you DevopsDays DC June 2015
DevOops & How I hacked you DevopsDays DC June 2015
 
Jenkins Plugin Development With Gradle And Groovy
Jenkins Plugin Development With Gradle And GroovyJenkins Plugin Development With Gradle And Groovy
Jenkins Plugin Development With Gradle And Groovy
 
Testing Automaton - CFSummit 2016
Testing Automaton - CFSummit 2016Testing Automaton - CFSummit 2016
Testing Automaton - CFSummit 2016
 
Automated ui-testing
Automated ui-testingAutomated ui-testing
Automated ui-testing
 
Continuous Integration with Hackintosh
Continuous Integration with HackintoshContinuous Integration with Hackintosh
Continuous Integration with Hackintosh
 
Step by step guide for creating wordpress plugin
Step by step guide for creating wordpress pluginStep by step guide for creating wordpress plugin
Step by step guide for creating wordpress plugin
 

Viewers also liked

Images(2)
Images(2)Images(2)
Images(2)
sitifatimah epat
 
The beach in Hua Hin Thailand by Ingemar Pongratz
The beach in Hua Hin Thailand by Ingemar PongratzThe beach in Hua Hin Thailand by Ingemar Pongratz
The beach in Hua Hin Thailand by Ingemar Pongratz
Ingemar Pongratz; Fenix Scientific AB
 
TEMPORARY WETLANDS IN SPAIN final
TEMPORARY WETLANDS IN SPAIN finalTEMPORARY WETLANDS IN SPAIN final
TEMPORARY WETLANDS IN SPAIN finalAdhitya Wirayasa
 
Jarvier Peeples - Resume - January 2017
Jarvier Peeples - Resume - January 2017Jarvier Peeples - Resume - January 2017
Jarvier Peeples - Resume - January 2017
Jarvier Peeples
 
Conclusiones Coneia 2011
Conclusiones Coneia 2011Conclusiones Coneia 2011
Conclusiones Coneia 2011
AEEIA
 
ENC Times-December 10,2016
ENC Times-December 10,2016ENC Times-December 10,2016
ENC Times-December 10,2016
ENC
 
AGUA EN EL PLANETA DE LA VIDA
AGUA EN EL PLANETA DE LA VIDAAGUA EN EL PLANETA DE LA VIDA
AGUA EN EL PLANETA DE LA VIDA
Lorena Gracia
 
AF 137 (SS 200) - Ka
AF 137 (SS 200) - KaAF 137 (SS 200) - Ka
AF 137 (SS 200) - Ka
Stripovi Klub
 
presentacion
presentacionpresentacion
presentacion
Tutora Primaria
 
Data bases in educatioanl contexts
Data bases in educatioanl contextsData bases in educatioanl contexts
Data bases in educatioanl contexts
Amal Jith
 
Case Study on Property Portal Data Security
Case Study on Property Portal Data SecurityCase Study on Property Portal Data Security
Case Study on Property Portal Data Security
Property Portal Watch
 
Refactoring Workflows & Techniques Presentation by Valentin Stantescu
Refactoring Workflows & Techniques Presentation by Valentin StantescuRefactoring Workflows & Techniques Presentation by Valentin Stantescu
Refactoring Workflows & Techniques Presentation by Valentin Stantescu
PayU Türkiye
 
PLDT Investment in Rocket Internet
PLDT Investment in Rocket InternetPLDT Investment in Rocket Internet
PLDT Investment in Rocket Internet
Pierre Poignant
 

Viewers also liked (14)

Images(2)
Images(2)Images(2)
Images(2)
 
The beach in Hua Hin Thailand by Ingemar Pongratz
The beach in Hua Hin Thailand by Ingemar PongratzThe beach in Hua Hin Thailand by Ingemar Pongratz
The beach in Hua Hin Thailand by Ingemar Pongratz
 
TEMPORARY WETLANDS IN SPAIN final
TEMPORARY WETLANDS IN SPAIN finalTEMPORARY WETLANDS IN SPAIN final
TEMPORARY WETLANDS IN SPAIN final
 
Jarvier Peeples - Resume - January 2017
Jarvier Peeples - Resume - January 2017Jarvier Peeples - Resume - January 2017
Jarvier Peeples - Resume - January 2017
 
Conclusiones Coneia 2011
Conclusiones Coneia 2011Conclusiones Coneia 2011
Conclusiones Coneia 2011
 
ENC Times-December 10,2016
ENC Times-December 10,2016ENC Times-December 10,2016
ENC Times-December 10,2016
 
AGUA EN EL PLANETA DE LA VIDA
AGUA EN EL PLANETA DE LA VIDAAGUA EN EL PLANETA DE LA VIDA
AGUA EN EL PLANETA DE LA VIDA
 
AF 137 (SS 200) - Ka
AF 137 (SS 200) - KaAF 137 (SS 200) - Ka
AF 137 (SS 200) - Ka
 
Escuela Nº 605
Escuela Nº 605Escuela Nº 605
Escuela Nº 605
 
presentacion
presentacionpresentacion
presentacion
 
Data bases in educatioanl contexts
Data bases in educatioanl contextsData bases in educatioanl contexts
Data bases in educatioanl contexts
 
Case Study on Property Portal Data Security
Case Study on Property Portal Data SecurityCase Study on Property Portal Data Security
Case Study on Property Portal Data Security
 
Refactoring Workflows & Techniques Presentation by Valentin Stantescu
Refactoring Workflows & Techniques Presentation by Valentin StantescuRefactoring Workflows & Techniques Presentation by Valentin Stantescu
Refactoring Workflows & Techniques Presentation by Valentin Stantescu
 
PLDT Investment in Rocket Internet
PLDT Investment in Rocket InternetPLDT Investment in Rocket Internet
PLDT Investment in Rocket Internet
 

Similar to Jenkins Setup Document

Mixpanel Integration in Android
Mixpanel Integration in AndroidMixpanel Integration in Android
Mixpanel Integration in Android
mobi fly
 
Chocolatey - making the process of installing software on windows easy as pie
Chocolatey - making the process of installing software on windows easy as pieChocolatey - making the process of installing software on windows easy as pie
Chocolatey - making the process of installing software on windows easy as pie
Justin James
 
Setting up your virtual infrastructure using fi-lab cloud
Setting up your virtual infrastructure using fi-lab cloudSetting up your virtual infrastructure using fi-lab cloud
Setting up your virtual infrastructure using fi-lab cloud
Fernando Lopez Aguilar
 
Install NewGenLib on Windows XP
Install NewGenLib on Windows XPInstall NewGenLib on Windows XP
Install NewGenLib on Windows XP
Rupesh Kumar
 
Practical Installation Process Of New Gen Lib Oss On Windows Xp For Library A...
Practical Installation Process Of New Gen Lib Oss On Windows Xp For Library A...Practical Installation Process Of New Gen Lib Oss On Windows Xp For Library A...
Practical Installation Process Of New Gen Lib Oss On Windows Xp For Library A...
Goutam Biswas
 
Sencha touchonbb10 bootcamp
Sencha touchonbb10 bootcampSencha touchonbb10 bootcamp
Sencha touchonbb10 bootcampn_adam_stanley
 
Installation Process Of New Gen Lib Oss On Windows Xp For Library Automation ...
Installation Process Of New Gen Lib Oss On Windows Xp For Library Automation ...Installation Process Of New Gen Lib Oss On Windows Xp For Library Automation ...
Installation Process Of New Gen Lib Oss On Windows Xp For Library Automation ...
Goutam Biswas
 
Software industrialization
Software industrializationSoftware industrialization
Software industrialization
Bibek Lama
 
Newgenlib
NewgenlibNewgenlib
Newgenlib
Shiba Bhue
 
Newgenlib
NewgenlibNewgenlib
Newgenlib
Shiba Bhue
 
Create Applicationwith IIS 7
Create Applicationwith IIS 7Create Applicationwith IIS 7
Create Applicationwith IIS 7
Sandeep Verma
 
( 16 ) Office 2007 Create An Extranet Site With Forms Authentication
( 16 ) Office 2007   Create An Extranet Site With Forms Authentication( 16 ) Office 2007   Create An Extranet Site With Forms Authentication
( 16 ) Office 2007 Create An Extranet Site With Forms AuthenticationLiquidHub
 
Gwt portlet
Gwt portletGwt portlet
Gwt portlet
prabakaranbrick
 
CI/CD with Jenkins and Docker - DevOps Meetup Day Thailand
CI/CD with Jenkins and Docker - DevOps Meetup Day ThailandCI/CD with Jenkins and Docker - DevOps Meetup Day Thailand
CI/CD with Jenkins and Docker - DevOps Meetup Day Thailand
Troublemaker Khunpech
 
Continuous Delivery w projekcie Open Source - Marcin Stachniuk - DevCrowd 2017
Continuous Delivery w projekcie Open Source - Marcin Stachniuk - DevCrowd 2017Continuous Delivery w projekcie Open Source - Marcin Stachniuk - DevCrowd 2017
Continuous Delivery w projekcie Open Source - Marcin Stachniuk - DevCrowd 2017
MarcinStachniuk
 
Orangescrum In App Chat Add-on User Manual
Orangescrum In App Chat Add-on User ManualOrangescrum In App Chat Add-on User Manual
Orangescrum In App Chat Add-on User Manual
Orangescrum
 
Bugzilla Installation Process
Bugzilla Installation ProcessBugzilla Installation Process
Bugzilla Installation ProcessVino Harikrishnan
 
Jenkins CI/CD setup for iOS in Mac OSX
Jenkins CI/CD setup for iOS in Mac OSXJenkins CI/CD setup for iOS in Mac OSX
Jenkins CI/CD setup for iOS in Mac OSX
Gagan Vishal Mishra
 
Installing WordPress on AWS
Installing WordPress on AWSInstalling WordPress on AWS
Installing WordPress on AWS
Manish Jain
 
Dev ops &amp; laas fundamental
Dev ops &amp; laas fundamentalDev ops &amp; laas fundamental
Dev ops &amp; laas fundamental
Kanin Kearpimy
 

Similar to Jenkins Setup Document (20)

Mixpanel Integration in Android
Mixpanel Integration in AndroidMixpanel Integration in Android
Mixpanel Integration in Android
 
Chocolatey - making the process of installing software on windows easy as pie
Chocolatey - making the process of installing software on windows easy as pieChocolatey - making the process of installing software on windows easy as pie
Chocolatey - making the process of installing software on windows easy as pie
 
Setting up your virtual infrastructure using fi-lab cloud
Setting up your virtual infrastructure using fi-lab cloudSetting up your virtual infrastructure using fi-lab cloud
Setting up your virtual infrastructure using fi-lab cloud
 
Install NewGenLib on Windows XP
Install NewGenLib on Windows XPInstall NewGenLib on Windows XP
Install NewGenLib on Windows XP
 
Practical Installation Process Of New Gen Lib Oss On Windows Xp For Library A...
Practical Installation Process Of New Gen Lib Oss On Windows Xp For Library A...Practical Installation Process Of New Gen Lib Oss On Windows Xp For Library A...
Practical Installation Process Of New Gen Lib Oss On Windows Xp For Library A...
 
Sencha touchonbb10 bootcamp
Sencha touchonbb10 bootcampSencha touchonbb10 bootcamp
Sencha touchonbb10 bootcamp
 
Installation Process Of New Gen Lib Oss On Windows Xp For Library Automation ...
Installation Process Of New Gen Lib Oss On Windows Xp For Library Automation ...Installation Process Of New Gen Lib Oss On Windows Xp For Library Automation ...
Installation Process Of New Gen Lib Oss On Windows Xp For Library Automation ...
 
Software industrialization
Software industrializationSoftware industrialization
Software industrialization
 
Newgenlib
NewgenlibNewgenlib
Newgenlib
 
Newgenlib
NewgenlibNewgenlib
Newgenlib
 
Create Applicationwith IIS 7
Create Applicationwith IIS 7Create Applicationwith IIS 7
Create Applicationwith IIS 7
 
( 16 ) Office 2007 Create An Extranet Site With Forms Authentication
( 16 ) Office 2007   Create An Extranet Site With Forms Authentication( 16 ) Office 2007   Create An Extranet Site With Forms Authentication
( 16 ) Office 2007 Create An Extranet Site With Forms Authentication
 
Gwt portlet
Gwt portletGwt portlet
Gwt portlet
 
CI/CD with Jenkins and Docker - DevOps Meetup Day Thailand
CI/CD with Jenkins and Docker - DevOps Meetup Day ThailandCI/CD with Jenkins and Docker - DevOps Meetup Day Thailand
CI/CD with Jenkins and Docker - DevOps Meetup Day Thailand
 
Continuous Delivery w projekcie Open Source - Marcin Stachniuk - DevCrowd 2017
Continuous Delivery w projekcie Open Source - Marcin Stachniuk - DevCrowd 2017Continuous Delivery w projekcie Open Source - Marcin Stachniuk - DevCrowd 2017
Continuous Delivery w projekcie Open Source - Marcin Stachniuk - DevCrowd 2017
 
Orangescrum In App Chat Add-on User Manual
Orangescrum In App Chat Add-on User ManualOrangescrum In App Chat Add-on User Manual
Orangescrum In App Chat Add-on User Manual
 
Bugzilla Installation Process
Bugzilla Installation ProcessBugzilla Installation Process
Bugzilla Installation Process
 
Jenkins CI/CD setup for iOS in Mac OSX
Jenkins CI/CD setup for iOS in Mac OSXJenkins CI/CD setup for iOS in Mac OSX
Jenkins CI/CD setup for iOS in Mac OSX
 
Installing WordPress on AWS
Installing WordPress on AWSInstalling WordPress on AWS
Installing WordPress on AWS
 
Dev ops &amp; laas fundamental
Dev ops &amp; laas fundamentalDev ops &amp; laas fundamental
Dev ops &amp; laas fundamental
 

More from mobi fly

Mobifly - mobile and web application development company gurgaon - brochure
Mobifly -   mobile and web application development company gurgaon - brochureMobifly -   mobile and web application development company gurgaon - brochure
Mobifly - mobile and web application development company gurgaon - brochure
mobi fly
 
Razorpay
RazorpayRazorpay
Razorpay
mobi fly
 
Urban Airship & Android Application Integration Document
Urban Airship & Android Application Integration DocumentUrban Airship & Android Application Integration Document
Urban Airship & Android Application Integration Document
mobi fly
 
Procto r executive presentation
Procto r   executive presentationProcto r   executive presentation
Procto r executive presentation
mobi fly
 
Last mile mobile app for logistics
Last mile   mobile app for logisticsLast mile   mobile app for logistics
Last mile mobile app for logistics
mobi fly
 
Monitoring as a_servihttp://www.slideshare.net/upload#ce_4_healthcareproviders
Monitoring as a_servihttp://www.slideshare.net/upload#ce_4_healthcareprovidersMonitoring as a_servihttp://www.slideshare.net/upload#ce_4_healthcareproviders
Monitoring as a_servihttp://www.slideshare.net/upload#ce_4_healthcareprovidersmobi fly
 

More from mobi fly (6)

Mobifly - mobile and web application development company gurgaon - brochure
Mobifly -   mobile and web application development company gurgaon - brochureMobifly -   mobile and web application development company gurgaon - brochure
Mobifly - mobile and web application development company gurgaon - brochure
 
Razorpay
RazorpayRazorpay
Razorpay
 
Urban Airship & Android Application Integration Document
Urban Airship & Android Application Integration DocumentUrban Airship & Android Application Integration Document
Urban Airship & Android Application Integration Document
 
Procto r executive presentation
Procto r   executive presentationProcto r   executive presentation
Procto r executive presentation
 
Last mile mobile app for logistics
Last mile   mobile app for logisticsLast mile   mobile app for logistics
Last mile mobile app for logistics
 
Monitoring as a_servihttp://www.slideshare.net/upload#ce_4_healthcareproviders
Monitoring as a_servihttp://www.slideshare.net/upload#ce_4_healthcareprovidersMonitoring as a_servihttp://www.slideshare.net/upload#ce_4_healthcareproviders
Monitoring as a_servihttp://www.slideshare.net/upload#ce_4_healthcareproviders
 

Recently uploaded

Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdfUni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems S.M.S.A.
 
Free Complete Python - A step towards Data Science
Free Complete Python - A step towards Data ScienceFree Complete Python - A step towards Data Science
Free Complete Python - A step towards Data Science
RinaMondal9
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
Adtran
 
Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1
DianaGray10
 
PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
Ralf Eggert
 
By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024
Pierluigi Pugliese
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance
 
Video Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the FutureVideo Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the Future
Alpen-Adria-Universität
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
DanBrown980551
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
James Anderson
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
DianaGray10
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
Alan Dix
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
BookNet Canada
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Albert Hoitingh
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
Matthew Sinclair
 
GridMate - End to end testing is a critical piece to ensure quality and avoid...
GridMate - End to end testing is a critical piece to ensure quality and avoid...GridMate - End to end testing is a critical piece to ensure quality and avoid...
GridMate - End to end testing is a critical piece to ensure quality and avoid...
ThomasParaiso2
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
Laura Byrne
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
KatiaHIMEUR1
 

Recently uploaded (20)

Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdfUni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdf
 
Free Complete Python - A step towards Data Science
Free Complete Python - A step towards Data ScienceFree Complete Python - A step towards Data Science
Free Complete Python - A step towards Data Science
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
 
Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1
 
PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
 
By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
 
Video Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the FutureVideo Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the Future
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
 
GridMate - End to end testing is a critical piece to ensure quality and avoid...
GridMate - End to end testing is a critical piece to ensure quality and avoid...GridMate - End to end testing is a critical piece to ensure quality and avoid...
GridMate - End to end testing is a critical piece to ensure quality and avoid...
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
 

Jenkins Setup Document

  • 1.                     Jenkins Setup Document       BrainBox Network. Copyright@2015. All rights reserved  
  • 2.   The document provides steps to integrate Android Application with Jenkins. The integration process requires following steps ‐ 1. System Requirements 2. Download Jenkins 3. Starting Jenkins 4. How to Install Tomcat in Windows 5. Configure Apache with Jenkins 6. Jenkins First Look 7. Configuration 8. JDK Setup 9. PlugIn Installation 10. List of Necessary Plugins  11. Jenkins New Project Setup 12. Get Project from Repository 13. Build Android Project 14. Email Notification 15. Advanced Setting 16. Set Success Trigger 17. Setup Notification Detail 18. Set Failure Trigger 19. Setup Notification Detail 20. Project Build Error 21. Build the Project BrainBox Network. Copyright@2015. All rights reserved  
  • 3.   SYSTEM REQUIREMENTS    ➔ JDK :​JDK 1.5 or above ➔ Memory:​2GB RAM (recommended) ➔ Disk Space:​No minimum requirement. Note that since all builds will be stored on the Jenkins machines, it has to be ensured that sufficient disk space is available for build storage. ➔ Operating System Version:​Jenkins can be installed on Windows, Ubuntu/Debian, Red Hat/Fedora/CentOS, Mac OS X, openSUSE, FReeBSD, OpenBSD, Gentoo. ➔ Java Container:​The WAR file can be run in any container that supports Servlet 2.4/JSP 2.0 or later.(An example is ​TOMCAT/APACHE​). BrainBox Network. Copyright@2015. All rights reserved  
  • 4.   DOWNLOAD JENKINS    ➔ Open Given Link :​​https://jenkins‐ci.org/ ➔ Download Jenkins for system BrainBox Network. Copyright@2015. All rights reserved  
  • 5.   STARTING JENKINS  ➔ Open the command prompt, ➔ Browse to the directory where the “Jenkins.war” file is present. ➔ Run the following command: Mostly Jenkins installation directory location is:​C:Program Files (x86)Jenkins ​Command:​Java –jar Jenkins.war ➔ Accessing Jenkins:​ ​Once Jenkins is up and running,   You can access Jenkins from the link − ​http://localhost:8080   BrainBox Network. Copyright@2015. All rights reserved  
  • 6.   HOW TO INSTALL TOMCAT IN WINDOWS MACHINE    ➔ Link ​https://tomcat.apache.org/download‐70.cgi​use for download the tomcat. ➔ Then unzip the contents of the downloaded zip file and install. BrainBox Network. Copyright@2015. All rights reserved  
  • 7.   CONFIGURE APACHE WITH JENKINS    ➔ Copy the ​Jenkis.war​file and PASTE it to the webapps folder in the tomcat folder. ➔ Now open the​​command prompt ➔ Browse to the bin directory in this folder and run the start.bat file E:Appstomcat7bin>startup.bat ➔ Then open ​http://localhost/jenkins BrainBox Network. Copyright@2015. All rights reserved  
  • 9.   CONFIGURATION    ➔ Click on “Manage Jenkins” link, showing in left side bar of the screen. ➔ Click on “Configuration Setting”, showing in the container part of the screen.   BrainBox Network. Copyright@2015. All rights reserved  
  • 10.   JDK SETUP    ➔ Click on “JDK Installations” button ➔ Set JDK path, where you want the install JDK in your machine. ➔ Then click “Save” BrainBox Network. Copyright@2015. All rights reserved  
  • 11.   ➔ Then click on “Available” button ➔ Then put the “Go to next Slide” in your “Filter” showing in right top corner. ➔ Check and select Plugin, ➔ Then Click “Download now and install after restart” button BrainBox Network. Copyright@2015. All rights reserved  
  • 12.   INSTALL PLUGIN  ➔ Click on “Manage Plugin” icon, it is located in container part of the screen.         BrainBox Network. Copyright@2015. All rights reserved  
  • 13.   LIST FOR NECESSARY PLUGINS    1. Credentials Plugin 2. Email Extension Plugin 3. Google Authenticated Source plugin 4. Google Login Plugin 5. Google OAuth Credentials plugin 6. Gradle plugin 7. Subversion Plug‐in 8. OAuth Credentials plugin 9. SSH Credentials Plugin ➔ Go to “Configure System” ➔ Go to extended email notification ➔ Click “Advanced” ➔ Fill in blank: 1. SMTP server ‐> smtp.gmail.com (Mandatory) 2. Use SMTP Authentication ‐> CHECK TRUE (Mandatory) 3. USER NAME ‐> <YOUR_EMAIL_ID> (Mandatory) 4. PASSWORD ‐> <YOUR_EMAIL_ID_PASSWORD> (Mandatory) 5. USE SSL ‐> CHECK TRUE (Mandatory) 6. SMTP PORT ‐> 465 (Mandatory) 7. Default Recipients ‐> <ANY EMAIL ID> (Mandatory) ➔ Save and Restart. BrainBox Network. Copyright@2015. All rights reserved  
  • 14.   JENKINS NEW PROJECT SETUP  ➔ OPEN ​http://localhost:8080/ ➔ Create new Job:​Click on “New Item” ➔ Enter your project name in “Item Name” text box ➔ Check true “Freestyle project” ➔ Press “OK” BrainBox Network. Copyright@2015. All rights reserved  
  • 15.   GET PROJECT FROM  REPOSITORY      ➔ Go to “Source Code Management” block ➔ Select “Subversion” ➔ Enter Repository Url” ➔ Insert “Use Svn update as much as possible” in the “Check‐out Strategy” field ➔ Press “Apply” ➔ In first time Svn setup you also configure Svn credential ➔ Click “Enter Credentials”, and enter your Svn credentials BrainBox Network. Copyright@2015. All rights reserved  
  • 16.   BUILD ANDROID PROJECT        ➔ Go To “Build Tag” ➔ Click on “Add Build Setup” ➔ ➔ Select “Execute windows batch command” ➔ Paste below code in Command Prompt: ​gradlew.bat assembleDebug ➔ ADD ONE MORE COMMAND BOX by clicking on “Add build step” and paste below code ➔ if exist temp rmdir temp /S /Q ➔ if not exist temp mkdir temp copy /Y "%WORKSPACE%appbuildoutputsapk<YOUR_APK_NAME>.apk" "temp<YOUR_APK_NAME>_%BUILD_NUMBER%.apk" move /Y "%WORKSPACE%appbuildoutputsapk<YOUR_APK_NAME>.apk" "c:Program Files (x86)JenkinsuserContent" ➔ As shown below :‐ BrainBox Network. Copyright@2015. All rights reserved  
  • 17.   ➔ Press “Apply”. EMAIL NOTIFICATION    ➔ NOTIFICATION ON SUCCESS BUILD (SEND APK WITH NOTIFICATION) 1. Go To post build action tag 2. Select “Add Post build action” 3. Select “Editable Email Notification” BrainBox Network. Copyright@2015. All rights reserved  
  • 18.   ADVANCED SETTING        ➔ Click on “Advanced Setting” BrainBox Network. Copyright@2015. All rights reserved  
  • 19.   SET SUCCESS TRIGGER        ➔ Go To “Trigger” tag ➔ Press “Add Trigger” ➔ Select “success” ➔ Screen looks like below screen ➔ Select “Advanced”. BrainBox Network. Copyright@2015. All rights reserved  
  • 20.   SETUP NOTIFICATION DETAIL        ➔ Add “Recipient List” (Ex: ​mohit.mobifly@gmail.com​) ➔ Set “Subject” (Ex: $PROJECT_NAME ‐ $BUILD_NUMBER ‐ $BUILD_STATUS) ➔ Set “Content” : ​<html> <body> <h4>Build # $BUILD_NUMBER ‐ $BUILD_STATUS</h4> <h4>APK Name: <YOUR_APK_NAME>_$BUILD_TYPE_ $BUILD_NUMBER .apk</h4> </body> </html> ➔ Add “Attachments” Copy & Paste given code:​​(temp/*.apk) ➔ Set “Attach Build Log”: ​If you want to attach any bulid log, then you have to select “Attach Build Log” otherwise select “Do Not Attach Build Log” BrainBox Network. Copyright@2015. All rights reserved  
  • 21.   SET FAILURE TRIGGER        ➔ Go To “Trigger Tag” ➔ Press “Add Trigger” ➔ Select “Failure” ➔ Your screen will looks like below shown screen BrainBox Network. Copyright@2015. All rights reserved  
  • 22.   SETUP NOTIFICATION DETAIL    ➔ ADD Recipient List​​(Ex: ​mohit.mobifly@gmail.com​) ➔ Set Subject (Ex: $PROJECT_NAME ‐ $BUILD_NUMBER ‐ $BUILD_STATUS) ➔ Set Content (<ANY INFORMATION>) ➔ Set “Attach Build Log” (Select “Attach Build Log”) ➔ Save and Build now. BrainBox Network. Copyright@2015. All rights reserved  
  • 23.   PROJECT BUILD ERROR  ➔ If during build a Project on jenkin , An exception occurs with message “The SDK directory does not exist.” As shown below :‐ ➔ Then go through the jenkins directory of your system : 1. Open workspace folder under your project folder in jenkins directory 2. Update “local.properties” file with your local SDK path and save it.       BrainBox Network. Copyright@2015. All rights reserved  
  • 24.   NOW BUILD THE PROJECT    ➔ On successful build of project. ➔ Find generated APK on your specified locations. ➔ Check your specified emails also. BrainBox Network. Copyright@2015. All rights reserved  
  • 25.   Thank You So Very Much For queries please write on ​ashish@mobifly.in Developed By Mohit Saini Android Developer ‐ Mobifly mobifly.in BrainBox Network. Copyright@2015. All rights reserved