Currently Browsing

Posts Tagged ‘ Jenkins ’

Jenkins service VS Jenkins .war run

One of our recent project requited the setup of a new Jenkins on an AWS Workspace instance with Windows 7 OS. The task was not particularly hard, just a basic setup for fetching and compiling a repo, building and running Selenium tests.

After installing and setting up the service version of the Jenkins everything was fine: the build was successful and the logs appeared on the console as it was expected. After a while a strange thing happened: no browsers appeared although the logs confirmed that they were started, all the tests were running correctly and all of them passed at the end of the run.

Running simple Ant builds via Jenkins

I assume that a Jenkins is already installed and running on your system.
the first step is to open Jenkins in your web browser a If you didn’t changed the default settings you can reach Jenkins on http://localhost:8080/

After you login to Jenkins the following screen should appear:

Set up ant in Jenkins in Manage Jenkins -> Configure System. If you use auto install Jenkins will download Ant immediately before the next build.

Sending notification for broken builds via gmail account in Jenkins

To be able to send emails in Jenkins we have to do two things:
Setup SMTP server in global settings and set the notification option in the project.

    To set SMTP server:

  • go to Manage Jenkins -> Global Settings
  • SMTP server (i.e., outgoing mail):
  • SMTP username: Your full Gmail or Google Apps email address (e.g. or
  • SMTP password: Your Gmail or Google Apps email password – be aware if you have a 2-Step Verification, you have to generate a code for the setup
  • SMTP port: 465
  • SMTP TLS/SSL required: yes


Jenkins setup and basic security settings

You have to download a platform-specific installer from Jenkins site:

The installation should be easy, if you have any issues with it you can find additional information on the site

After the installation in windows you should restart your machine, Jenkins will start up with windows.
To check if it running you have to go to http://localhost:8080/

My advice is that the first thing should be to set up an administrator account to block people from the network to misuse the application.

How to install and setup Jenkins

We use Ubuntu system as a base for this tutorial.
Before we want to install Jenkins we need to install Java JDK.
Ubuntu is using Openjdk, to install it type the following to terminal:

$sudo apt-get install openjdk-7-jdk

Ubuntu installs the JDK (in my case)to the /usr/lib/jvm/java-7-openjdk-amd64/  folder. In additional, Ubuntu also puts the JDK bin folder in the system path, via symbolic link (/usr/bin/java).To verify that JDK is installed properly, type:

java –version

The output would be something like this: