How to Create Job in Jenkins Step by Step

Steps to Create Job in Jenkins

To create jobs into the jenkins, the first step is to login into the jenkins console. And then click on the new jobs or new items on the console as shown in the image below.

After clicking on the above mentioned button, you will be able to see the different types of jobs which can be created as shown below.

Freestyle job and multi-configuration jobs are widely used in the organizations. After selecting the types of job, you will land onto the another page will will ask you about the version control system and other relevant information.as shown below.

 

4 →   You need to give the relevant repository path from where the code needs to be called along with the credentials to make the secure communication. Shown in the image below.

 

 

5 →  Apart from the jenkins file, you can also fire the commands you wanted before the build takes place. You can enter the commands by choosing option shown in the image below.

 

 

6 →  Save all the configuration and you will able to see job is created and will start its task.

         It is shown in the image below that how exactly it will look once it is created.

 

 

7 →  As shown in the image below, the code will start building and you can see the build number 1 is in making in the image below.

 

 

8 →  Once the build is created or not you will be able to see that on the console it self. In our case the build has built successfully.

 

9 → To view the logs, you can click on the blue bullet button which is aside of the build number and can view the logs of the build as shown in the image below.

 

 

That's all you need to know about jobs in jenkins.

Leave a Reply

Your email address will not be published. Required fields are marked *