How To Create Freestyle project/job in Jenkins
To Create Freestyle project/job in Jenkin
Introduction of Jenkins
Jenkins is an open-source automation tool written in Java with plugins designed for Continuous Integration. Jenkins builds and tests your software projects continuously, making it easier for developers to integrate changes to the project and for users to get a fresh build. The tool also enables you to continuously deliver your applications.
Procedure
Step 1: Check the IP address by using the below command
[root@linuxhelp ~]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: ens33: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 00:0c:29:b8:f7:db brd ff:ff:ff:ff:ff:ff
inet 192.168.6.122/23 brd 192.168.7.255 scope global noprefixroute ens33
valid_lft forever preferred_lft forever
inet6 fe80::20c:29ff:feb8:f7db/64 scope link noprefixroute
valid_lft forever preferred_lft forever
Step 2: Restart Jenkins server by using the below command
[root@linuxhelp ~]# systemctl restart jenkins.service
Step 3: Search Jenkins server IP address and port number as shown in the below image
Step 4: This is the Login page of Jenkins
Step 5: This is the dashboard of Jenkins
Step 6: Click New item to create a new project
Step 7: Enter the item name (projectName)
Step 8: Select freestyle project and click ok
Step 9: This is the dash board of the project. Now save and exit as shown in the below image
Step 10: Move to the terminal
Step 11: Change the directory to Jenkins default workspace location by using the below command
[root@linuxhelp ~]# cd /var/lib/jenkins/workspace/
Step 12: Long list the workspace using the below command
[root@linuxhelp workspace]# ls -la
total 4
drwxr-xr-x. 2 jenkins jenkins 6 Jul 2 06:06 .
drwxr-xr-x. 16 jenkins jenkins 4096 Jul 2 06:08 ..
Step 13: There is no workspace found
Step 14: Go to Jenkins web console again
Step 15: Now click build now
Step 16: This is the page of console output
Step 17: Move to the workspace location to check whether the project is successfully created.
Step 18: Then long list the default work space location
[root@linuxhelp workspace]# ls –la
total 4
drwxr-xr-x. 3 jenkins jenkins 26 Jul 2 06:12 .
drwxr-xr-x. 16 jenkins jenkins 4096 Jul 2 06:08 ..
drwxr-xr-x. 2 jenkins jenkins 6 Jul 2 06:12 'Test project'
Conclusion:
We have reached the end of this article. In this guide, we have walked you through the steps required to Create Freestyle project/job in Jenkins. Your feedback is much welcome.
Comments ( 0 )
No comments available