It took 5 minutes at max to setup a jenkins on my local machine. Here is the installation guide I followed to set it up on ubuntu 16.04 machine
wget -q -O - https://pkg.jenkins.io/debian/jenkins-ci.org.key | sudo apt-key add -
Added the repository key which should return ok
echo deb https://pkg.jenkins.io/debian-stable binary/ | sudo tee /etc/apt/sources.list.d/jenkins.list
Adding the package repository address to servers sources.list
sudo apt-get update
sudo apt-get install jenkins
So the jenkin is ready and up and running at this url and port 8080
0.0.0.0:8080 Typing this on my browser url will start a jenkin setup page asking for the initial password. This page appears when you are opening the jenkins for the first time. The locations where you can find the password is also given in the page . Use the sudo cat command followed by the path given which will return you a password which you need to add it there than a user registration process starts .
Note: Please fill the form properly and create a user account don’t skip it. Last time i skipped it to use the default user name and password but that did’t work and I re-installed the jenkins. That’s it we are ready to start with jenkins
This is what I did after jenkins installation
- Created a git hub repository
- Created a simple hello world script named it as hellow_world.py
- Created my first job to start building my simple hellow_world script.
Jenkins jobs setup details here:
- Added a git repository that I created
- Added the build section with following bash script
#!/bin/sh python hellow_world.py
- Apply and save it
- Start the build by selecting the project and clicking on build now.
Worked as expected ,happy me and twitted on twitter with big large output you see above.