Skip to main content

Everything I know about Jenkins - Part 2 - Test drive

In this post, I will list simple steps to start Jenkins and play with it for the first time.

Prerequisites

1. Windows, Mac or Linux operating system or virtual machine
2. A recent version of JDK installed. Verify by executing 'java -version' on the command line.


Installation

Download the latest jenkins.war file from http://mirrors.jenkins-ci.org/war/latest/jenkins.war

Startup

1. Start Jenkins as a java app by executing 'java -jar jenkins.war' (In Windows, you may need to open command prompt as admin)
2. A message stating 'Jenkins is fully up and running' shows up eventually.





Access the front end

Open http://localhost:8080 in a browser and you should see the front page of Jenkins. Authentication is disabled by default.

Create your first Jenkins job

1. Click on 'New Item' on the list of links on the left.

2. Enter the job name, select 'Freestyle project' and click ok.

3. Scroll to the bottom of the job configuration page displayed, click 'Add build step' and select the step that applies to the operating system where the jenkins.war file is running.


4. echo "Hello World!" and click save


5. Build now - to run the job



6. First successful build - click on the blue icon next to #1 under 'Build History'


7. Verify the output


You've just built your first Jenkins job!




Popular posts from this blog

Create #VirtualPrivateCloud, NAT Instance and NAT Gateways on @AWSCloud

Create a Virtual Private Cloud, NAT instance and the new NAT Gatweay ... and making it all work. This is a YouTube playlist of three videos.

Cheat sheet to create a #VPC and Subnets on @AWSCloud

One of the critical things to remember for working with a AWS VPC is creating and using it. I had hard time remembering how to do it, so, I wrote down a cheat sheet for myself.  If anyone wants to follow along, just navigate to the VPC page on the AWS Console and start with 'Create VPC' button. Please note that this may cost some dollars if you are not on the free tier. If you are on the free tier and make mistakes, it may cost some dollars. In the steps below, we will be creating the following on a new VPC: An internet gateway One public subnet with routes for accessibility from the internet One private subnet without any routes One EC2 web server with Apache installed in it and serving a sample html page - using the public subnet. One EC2 server with the private subnet and security group that allows access to resources running on the public subnet only.  Create VPC Name tag: myVPC CIDR Block: 10.0.0.0/16 Tenancy: default (Must have default. Otherwise, i...

My Infographic Resume