my first hello world python script build running on jenkins

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

  1. wget -q -O - | sudo apt-key add -

    Added the repository key which should return ok

  2. echo deb binary/ | sudo tee /etc/apt/sources.list.d/jenkins.list

    Adding the package repository address to servers sources.list

  3. sudo apt-get update
  4. sudo apt-get install jenkins

    So the jenkin is ready and up and running at this url and port 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

  1. Created a git hub repository
  2. Created a simple hello world script named it as
  3. Created my first job to start building my simple hellow_world script.

Jenkins jobs setup details here:

  1. Added a git repository that I created
  2. Added the build section with following bash script
  3. Apply and save it
  4. Start the build by selecting the project and clicking on build now.
  5. Output

successfully_running hellow world python in jenkins


Worked as expected ,happy me and twitted on twitter with big large output you see above.

Leave a Reply