How To Create Freestyle project/job in Jenkins

To Create Freedata-style 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 freedata-style 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 Freedata-style project/job in Jenkins. Your feedback is much welcome.

FAQ
Q
Name the three different types of pipelines in Jenkins?
A
CI/CD pipeline
Scripted pipeline
Declarative pipeline
Q
What is the default location of workspace in Jenkins?
A
/var/lin/jenkins/workspace
Q
What is a CI/CD pipeline?
A
Continuous integration and continuous deployment (CI/CD) pipelines define the steps involved in delivering a new version of the software.
Q
What are the features of Jenkins?
A
It is a free and open-source automation tool
Jenkins provides a vast number of plugins
It is easy to set up and install on multiple operating systems
Provides pipeline support
Fast release cycles
Easy upgrades
Q
What is Jenkins?
A
Jenkins is a self-contained, open-source automation server that can be used to automate all sorts of tasks related to building, testing, and delivering or deploying software. Jenkins can be installed through native system packages, Docker, or even run standalone by any machine with a Java Runtime Environment (JRE) installed.