Creating Web Application and Pushing It To GitHub Repository Using Eclipse IDE
Creating Web Application and Pushing It To GitHub Repository Using Eclipse IDE
1. Open Start menu -> Search for Eclipse -> Click Eclipse IDE for Enterprise Java and Web
Developers
2. Set your Z drive (Z:) as default workspace then click on Launch button
3. Create a new Maven Project using menu File -> New -> Maven Project
3. Click on Push Head then provide necessary details like GitHub Repository URL,
Username, Password (Personal access code-classic) then click on preview
4. In next screen provide username and password (Personal access code-classic) press
login
5. Then click on push.
6. Close the final window.
Installing and configuring Jenkins
1. Execute the following commands
a. sudo su
b. wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-
stable/jenkins.repo
c. rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io-2023.key
d. sudo yum upgrade
e. yum install jenkins -y
f. systemctl enable Jenkins
g. systemctl start Jenkins
2. Connect to the Jenking using Browser and the url: <Pulic IP>:8080
3. Copy admin initial password from the location
/var/lib/jenkins/secrets/initialAdminPassword and paste it in password box then
click on continue.
4. Choose Install Select plugins to install -> Deselect all default plugins -> click
install
5. Then Create Admin User by providing necessary details and then click Save and
Continue button.
2. Choose Plugins
3. Choose available plugins and then search for GitHub plugin then click on Install
Button.
4. Then go to Dashboard and then Click on Manage Jenkins.
5. Choose Plugins
6. Choose available plugins and then search for Maven Integration plugin then click
on Install Button.
i. Configure Maven and Git using Tools Button in Manage Jenkins Tab
ii. Add JDK