Hudson configuration manual



Similar documents
How To Run A Hello World On Android (Jdk) On A Microsoft Ds.Io (Windows) Or Android Or Android On A Pc Or Android 4 (

Installing the Android SDK

1 Building, Deploying and Testing DPES application

MyNetFone Virtual Fax. Virtual Fax Installation

<Insert Picture Here> Introducing Hudson. Winston Prakash. Click to edit Master subtitle style

Configuring the BBj Jetty Web Server (rev10.02) for OSAS

Supplement I.B: Installing and Configuring JDK 1.6

Jenkins on Windows with StreamBase

Getting Started with Android Development

Content. Development Tools 2(63)

Sonatype CLM Enforcement Points - Continuous Integration (CI) Sonatype CLM Enforcement Points - Continuous Integration (CI)

Eclipse installation, configuration and operation

Apache JMeter HTTP(S) Test Script Recorder

ComTrader Technical Requirements

Tutorial: BlackBerry Object API Application Development. Sybase Unwired Platform 2.2 SP04

Test Automation Integration with Test Management QAComplete

Getting Started using the SQuirreL SQL Client

Download and Installation Instructions. Android SDK and Android Development Tools (ADT) Microsoft Windows

How do I use Citrix Staff Remote Desktop

Android Development Setup [Revision Date: 02/16/11]

Supplement I.B: Installing and Configuring JDK 1.6

Java. How to install the Java Runtime Environment (JRE)

Citrix Remote Access Work Instructions

Selenium Automation set up with TestNG and Eclipse- A Beginners Guide

PHP+MYSQL, EASYPHP INSTALLATION GUIDE

Jenkins: The Definitive Guide

Installing Citrix for Mac

Click Start > Control Panel > System icon to open System Properties dialog box. Click Advanced > Environment Variables.

FileMaker Server 13. FileMaker Server Help

Using Oracle Cloud to Power Your Application Development Lifecycle

Installing Ruby on Windows XP

Mac Client Installation Notes

FileMaker Server 15. Getting Started Guide

FileMaker Server 13. Getting Started Guide

This tutorial provides detailed instructions to help you download and configure Internet Explorer 6.0 for use with Web Commerce application.

Tutorial: Android Object API Application Development. SAP Mobile Platform 2.3 SP02

How to remotely access your Virtual Desktop from outside the college using VMware View Client. How to guide

Active Directory Management. Agent Deployment Guide

Primavera P6 Professional Windows 8 Installation Instructions. Primavera P6. Installation Instructions. For Windows 8 Users

isupplier PORTAL ACCESS SYSTEM REQUIREMENTS


Citrix Client Install Instructions

FileMaker Server 12. FileMaker Server Help

Spam Marshall SpamWall Step-by-Step Installation Guide for Exchange 5.5

CONFIGURING ECLIPSE FOR AWS EMR DEVELOPMENT

QMX ios MDM Pre-Requisites and Installation Guide

Pre-Requisites: PC and Browser Configuration Guide v1.3

Network Connect Installation and Usage Guide

On premise upgrade guide (to 3.3) XperiDo for Microsoft Dynamics CRM

Download and Installation Instructions. Android SDK and Android Development Tools (ADT)

Android Development Tutorial. Nikhil Yadav CSE40816/ Pervasive Health Fall 2011

Home Course Catalog Schedule Pricing & Savings Training Options Resources About Us

Install MS SQL Server 2012 Express Edition

FileMaker Server 14. FileMaker Server Help

APIS CARM NG Quick Start Guide for MS Windows

Android Programming. Høgskolen i Telemark Telemark University College. Cuong Nguyen,

FileMaker Server 11. FileMaker Server Help

Oracle FLEXCUBE Direct Banking Android Tab Client Installation Guide Release

SuperOffice AS. CRM Online. Installing the Citrix Online Web plug-in

IBM WebSphere Application Server V8.5 lab Basic Liberty profile administration using the job manager

CycleServer Grid Engine Support Install Guide. version 1.25

Step-by-Step guide for SSO from MS Sharepoint 2010 to SAP EP 7.0x

KonyOne Server Prerequisites _ MS SQL Server

Installing Moodle for Windows with Easy PHP Illustrated Install Guide By Floyd Collins

WA1826 Designing Cloud Computing Solutions. Classroom Setup Guide. Web Age Solutions Inc. Copyright Web Age Solutions Inc. 1

IBM Bluemix Tutorial Connecting Eclipse to Bluemix v2.0

ilaw Installation Procedure

Configuration Manual Yahoo Cloud System Benchmark (YCSB) 24-Mar-14 SEECS-NUST Faria Mehak

Tutorial on Basic Android Setup

DOCUMENT MANAGEMENT SYSTEM

Hudson Continous Integration Server. Stefan Saasen,

Virtual Private Server Manual

Zanibal Plug-in For Microsoft Outlook Installation & User Guide Version 1.1

Practicing Continuous Delivery using Hudson. Winston Prakash Oracle Corporation

TortoiseGIT / GIT Tutorial: Hosting a dedicated server with auto commit periodically on Windows 7 and Windows 8

Practice Fusion API Client Installation Guide for Windows

Tutorial: setting up a web application

Installation Guide For Choic Enterprise Edition

HGC SUPERHUB HOSTED EXCHANGE


3. Installation and Configuration. 3.1 Java Development Kit (JDK)

FileMaker Server 10. Getting Started Guide

Configure Outlook 2013 to connect to Hosted Exchange

BusinessObjects Enterprise XI Release 2

Troubleshooting steps for Oracle Financials and Markview. Jan 2015

This walk-through was created using Windows XP as a guide, however alternate versions of the Windows OS will be very similar in procedure as well.

How to build your first Android Application in Windows

Docufide Client Installation Guide for Windows

Epidefender Studio Installation notice

MiraCosta College now offers two ways to access your student virtual desktop.

Installing and Configuring Microsoft Dynamics Outlook Plugin to Use with ipipeline MS CRM

Tutorial: Android Object API Application Development. SAP Mobile Platform 2.3

educ Office Remove & create new Outlook profile

IUCLID 5 Guidance and Support

FileMaker Server 12. Getting Started Guide

TIBCO Slingshot User Guide

client configuration guide. Business

P&WC Portal Settings. 1) Portal Language Setting:

Implementing Secure Sockets Layer on iseries

How to Log in to LDRPS-Web v10 (L10)

Transcription:

Hudson configuration manual 1

Chapter 1 What is Hudson? Hudson is a powerful and widely used open source continuous integration server providing development teams with a reliable way to monitor changes in source control and trigger a variety of builds. Hudson excels at integrating with almost every tool you can think of. Use Apache Maven, Apache Ant or Gradle or anything you can start with a command line script for builds and send messages via email, SMS, IRC and Skype for notifications. In addition to providing a platform for continuous integration builds, Hudson can also be extended to support software releases, documentation, monitoring, and a number of use cases secondary to continuous integration. In short, if you can think it, Hudson can do it. From automating system administration tasks with Puppet and verifying infrastructure setup with Cucumber, to building and testing PHP code, to simply building Enterprise Java applications Hudson stands ready to help. Need of continuous integration server Consider a hypothetical group of 20-30 developers working on a large enterprise application. This development team consists of 20-30 developers divided into groups of 5-12 developers working on focused features and components in a larger system. One group focuses on the database and a collection of APIs shared by all other groups, one group focuses on a complex front-end web application, and another group focuses on back-end systems such as billing and inventory which interface with a large Enterprise Service Bus (ESB). In this environment the business drives a number of overlapping development schedules. The web application team tends to work on two week development schedules, and the backend group performs releases in response to changes in the ESB. Any given month resemble a highly choreographed sequence of code freezes, development sprints, and products releases with little room for error and inefficiency. In summary, these 20-30 developers are under constant pressure to deliver, and the technical managers are tasked with Orchestrating the efforts of these various teams to deploy code to production on a regular schedule. This is what the enterprise feels like in 2011: it s very busy, and if you happen to find a bit of free time there is always someone who can create a new requirement. 2

Chapter 2 Installing and Running Hudson 1. Hudson has one prerequisite, a Java Runtime Environment (JRE) compatible with Java 6 or higher. Hudson is most often run with the JRE that is bundled with a Java Development Kit (JDK) installation. Visit the following link to download JRE/JDK http://www.oracle.com/technetwork/java/javase/downloads/index.html 2. The Hudson web site (http://hudson-ci.org/) provides a Java web archive file (WAR) for download. This file can either be started directly or used in an existing Java servlet container or application server. So, first download this WAR file. 3

3. Here is the WAR file downloaded to my PC 4. Next we need to make a source code repository, for this tutorial I will be using GIT as the repository, visit the official website (https://github.com/users) of GIT and make an account over there 4

5. After making an account, click on create a repository 6. Give name to the repository, and set it to public, for private repository GIT will charge you but your rep won t be public 5

7. After creating the repository, GIT will provide you a link of the repository, you will be using this link in Hudson server 8. After that visit this website http://git-scm.com/downloads and download GIT. I will be downloading and installing GIT.exe as I m using Windows 6

9. Now we will be installing GIT and HUDSON plugins on eclipse. For this download ECLIPSE (www.eclipse.org downloads ) and run it. If you are behind a proxy server you need to give the address of proxy server in eclipse, for this go to Window -> and click on Preferences 10. Go to General -> and click on Network Connections, change Active Provide to Native and provide your proxy server address. 7

11. Now go to HELP tab and click on Install New Software. 12. Paste these two links to download and install GIT and Hudson plugin i. Hudson plugin: https://repository.sonatype.org/content/-repositories/forge - sites/m2eclipse-hudson/0.13.0/s/0.13.0.20111015-0033/ ii. Egit plugin: http://download.eclipse.org/egit/updates 8

13. After you have installed both plugins, restart Eclipse. Then go to Window tab -> Show View -> and click on Other 14. Double click on Git Repositories and Hudson Jobs 9

15. You will have Hudson Jobs and Git Repositories at the bottom. 16. Again go to Windows tab and click on Preferences 10

17. Go to Network connections, expand it and click on SSH2. Click on Generate DSA Key to generate Public and Private Key pairs, copy the Public Key. And click on Save Private Key to save the key. 11

18. Go to GIT, click on Account Settings located on top right corner, from there click on SSH Keys present on left side, paste the public key generated in eclipse, give a title to it and click on the Add Key. This Key will provide authentication that valid user is using the repository. You can add multiple keys, if there are multiple users accessing the repository. 19. Up till now we have installed GIT and Hudson plugins on eclipse, have generated and uploaded the key to our GIT source code repository. Now we will create a simple Hello World project on eclipse and will upload it to our repository. 12

20. Go to File -> New -> Java Project 21. Name the project and click on Finish 13

22. Now add a Class to this project 23. Name the class and click on finish 14

24. Finally add HELLO WORLD code, and build the project 25. Now to upload this project, right click on the project, go to Team and click on Share Project 15

26. Select GIT and click next 27. Click on Create repository, name your repository and click Finish 16

28. Click finish 29. Now go to the GIT repository view, right click on Remote and from there click on Create Remote 17

30. Name the remote and click Ok 31. Following window will pop up, click on Change and specify GIT url. 18

32. Specify your GIT path and click Finish 33. And then click save 19

34. Again go to Team, this time you will have wide variety of options, click on Commit 35. Check the JAVA class you want to upload, type in commit message and click Commit 20

36. Go to GIT window, expand origin, and click on Push 37. If your internet is working, eclipse would upload your source code / class to GIT 21

38. Following message, shows source code has been uploaded 39. The following figure shows that hello_world_upload class has been uploaded to my_5th_rep in GIT 22

40. Source code 41. To update the GIT repository some later time with new source code you have to commit again, for this repeat step 34 to 36. 42. Eclipse and GIT are configured and working. Now let s move to Hudson, for this you need to type the following command in command prompt java jar Hudso.war 23

43. Hudson will start loading itself 44. Go to your web browser and type 127.0.0.1:8080, Hudson page will show, this indicates that server is working fine. 24

45. First of all you need to configure Hudson that is to install the necessary plugins and specify path of Java JDK and GIT.exe. For this click on Manage Hudson 46. The following plugins are installed 25

47. After installing plugins go to Configure System and specify the following paths 48. Now let s create a job, click on New Job, specify the job name, choose build a free style software job and click Ok. 26

49. GIT have created the HTTPS and SSH link of the repository copy that 50. Specify the path 27

51. Press the play button, so that job starts building, green icon means build was successful while red icon means there was a failure. 52. Following figure shows build was successful 28

53. Now we will load these jobs from eclipse, for this go to Hudson window, click on the Add Jobs Icon, specify the Build Server url, and, then click on Load Jobs, all the jobs will load, select the jobs you want to watch in eclipse and then press Ok. 54. Now you can build jobs directly from eclipse 29