Posts

Showing posts from July, 2018

How to create your first Jenkins Job

Image
Creating your first Jenkins Job Prerequisite:  Jenkins is installed and configured, if you need any help doing so, refer the steps  here  and here . Navigate to your Jenkins dashboard by browsing  http://localhost:8080   Since we are going to create a Maven job, lets first install the maven integration plugin and a couple of other plugins which will help us with reports. Click on "Manage Jenkins" from the left pane and then click on "Manage Plugins" Click on "Available" tab and search for maven in the Filter text box. Select "Maven Integration" from the list of suggestions. Next, you can also select "TestNG Results" and "HTML publisher" plugin which we will use for publishing reports. Optional: You can also select "Green Balls" plugins if you don't like the blue color balls of maven and want to show it in Green color on build success. Once you are done selecting the plug...

How to Configure Jenkins and Create a Node

Image
Jenkins Configuration Prerequisite:  Jenkins installation is completed. If you have not setup your Jenkins yet, refer the steps here . Navigate to your Jenkins dashboard by browsing  http://localhost:8080   Click on Manage Jenkins from the left pane Next click on Global Tool Configuration Under  Global Tool Configuration, c lick on JDK installations, uncheck the install automatically checkbox and enter the Name as JDK and JAVA_HOME as the directory at which you have installed the JDK Scroll down, click on Maven installations and similarly enter the Maven Name and MAVEN_HOME values Click Apply or Save Go back to Manage Jenkins and click on "Configure System" Scroll down to E-mail Notification and click Advanced Go to the Gmail account you wish to use for sending emails from Jenkins, turn on the 2 step verification (if you don't have it on already) and generate an app-specific password for Jenkins. ...

Setup Multiple GitHub Accounts from a Single Machine

Image
Setting up a second GitHub Account Assuming that you already a git account setup on a machine and you are looking to set up a second one to help you manage your work and personal git accounts from a single machine. You might be already aware that you git SSH key is stored in a .ssh folder under your home directory. Navigate to this directory and type "ls" to check this. cd ~/.ssh ls Next, we need to create a new SSH key using your second git email address and give it a name other than the default "id_rsa", as by this name you will already have your first git account setup. In my case, I am naming it as "id_rsa_personal" ssh-keygen -t rsa -C "automationbynishant@gmail.com" -f "id_rsa_personal" Again type "ls" and check if the new RSA public and the private key are created. ls Run eval on ssh-agent which will check if ssh-agent is running and will start it if its not already running. Next, add this new SS...