SlideShare ist ein Scribd-Unternehmen logo
1 von 25
Downloaden Sie, um offline zu lesen
 
 
 
 
 
 
 
 
 
 
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
 

Weitere ähnliche Inhalte

Was ist angesagt?

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
Mainak Goswami
 

Was ist angesagt? (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
 

Andere mochten auch

TEMPORARY WETLANDS IN SPAIN final
TEMPORARY WETLANDS IN SPAIN finalTEMPORARY WETLANDS IN SPAIN final
TEMPORARY WETLANDS IN SPAIN final
Adhitya Wirayasa
 

Andere mochten auch (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
 

Ähnlich wie Jenkins Setup Document

Sencha touchonbb10 bootcamp
Sencha touchonbb10 bootcampSencha touchonbb10 bootcamp
Sencha touchonbb10 bootcamp
n_adam_stanley
 
( 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
LiquidHub
 
Bugzilla Installation Process
Bugzilla Installation ProcessBugzilla Installation Process
Bugzilla Installation Process
Vino Harikrishnan
 

Ähnlich wie 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
 

Mehr von 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
 

Kürzlich hochgeladen

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Kürzlich hochgeladen (20)

FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 

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