In this post, We will see how to create the first job in Jenkins.
In Jenkins, We can create multiple types of job project, But I am going to create a freestyle project job in Jenkins
So below the mentioned step please follow and In the last of this post, You will be a happy result.
Step:- 1
Open Jenkins in your browser If you have installed locally then the default URL would be http://localhost:8080/
Step:- 2
Enter your job name in the Item name box, Then click on the freestyle project and then click on the ok button.
Step:- 3
Then you will be referred to this page, Then scroll down and reached on the Build section tab.
Now click on the >> Add Build Step >> And Select build option Execute Shell Or Select according to the requirement.
Then write shell script command inside command Box, I have written
Step:- 5
Then you will see inside build history section one job is running, So click on the running job Or Executed Job and it will be redirected on the build console output.
Now you can see the result .....
I hope you have enjoyed this post, Please mention your valuable comment in the comment box.
In Jenkins, We can create multiple types of job project, But I am going to create a freestyle project job in Jenkins
So below the mentioned step please follow and In the last of this post, You will be a happy result.
Step:- 1
Open Jenkins in your browser If you have installed locally then the default URL would be http://localhost:8080/
Enter your job name in the Item name box, Then click on the freestyle project and then click on the ok button.
Step:- 3
Then you will be referred to this page, Then scroll down and reached on the Build section tab.
Now click on the >> Add Build Step >> And Select build option Execute Shell Or Select according to the requirement.
Then write shell script command inside command Box, I have written
echo "Hello this is my first job"
echo "Thank you ...................."
And Then Click on OK button
Step:- 4
Then click on Build Now option as shown in the image
Then you will see inside build history section one job is running, So click on the running job Or Executed Job and it will be redirected on the build console output.
Now you can see the result .....
I hope you have enjoyed this post, Please mention your valuable comment in the comment box.
nice post, very helpful...
ReplyDeletePost a Comment