0% found this document useful (0 votes)
7 views

Devops exp-3&4

The document outlines two experiments: one on practicing source code management using GitHub and another on installing and setting up Jenkins for CI/CD. It provides step-by-step instructions for creating a GitHub account, managing repositories, and exploring Jenkins features. Additionally, it includes viva questions related to GitHub management and Jenkins definition.

Uploaded by

rajanirk
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views

Devops exp-3&4

The document outlines two experiments: one on practicing source code management using GitHub and another on installing and setting up Jenkins for CI/CD. It provides step-by-step instructions for creating a GitHub account, managing repositories, and exploring Jenkins features. Additionally, it includes viva questions related to GitHub management and Jenkins definition.

Uploaded by

rajanirk
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 10

lOMoAR cPSD| 16948736

EXPERIMENTNO:3.PracticeSourcecodemanagementonGitHub.Experi
mentwiththesource codewritten inexercise1

Aim:PracticeSourcecodemanagementonGitHub.Ex
perim
entwiththesourcecodewritteninexercise1

Description:

TopracticesourcecodemanagementonGitHub,youcanfollowthesesteps:
• Createa GitHubaccountifyoudon'talreadyhave one.
• Createa newrepositoryonGitHub.
• Clone the repository to your local machine: $ git clone <repository-
url>
• Movetotherepository directory:$cd<repository-name>
• Create a new file in the repository and add the source code written
inexercise1.
• Stagethechanges:$gitadd<file-name>
• Commit the changes: $ git commit -m "Added source code for
asimpleuser registrationform"
• Pushthechangestotheremote repository:$gitpushoriginmaster
• Verify that the changes are reflected in the repository on
GitHub.ThesestepsdemonstratehowtouseGitHubforsourcecodemanagement.
You can use the same steps to manage any source code projects on
GitHub.Additionally, you can also explore GitHub features such as pull
requests,codereview,andbranchmanagementtoenhanceyoursourcecodemanag
ementworkflow.
Createa GitHubaccountifyoudon'talreadyhave
one. Createa newrepositoryonGitHub.

SIIET Page1
lOMoAR cPSD| 16948736

Clone the repository to your local machine: $ git clone <repository-url>


Movetotherepository directory:$cdnewrepository
Create a new file in the repository and add the source code written
inexercise2

• Stagethechanges:$gitaddnewfile
• Commit the changes: $ git commit -m "Added source code for
anewfile"
• Pushthechangestotheremote repository:$gitpushoriginmaster

SIIET Page2
lOMoAR cPSD| 16948736

• Verify that the changes are reflected in the repository on


GitHub.ThesestepsdemonstratehowtouseGitHubforsourcecodemanagement.
You can use the same steps to manage any source code projects on
GitHub.Additionally, you can also explore GitHub features such as pull
requests,codereview,andbranchmanagementtoenhanceyoursourcecodemanag
ementworkflow.

VIVAQUESTIONS

WhatisGitHubmanagement

SIIET Page3
lOMoAR cPSD| 16948736

EXPERIMENTNO:4.Jenkinsinstallationandsetup,exploretheenvironme
nt
Aim:Jenkinsinstallationandsetup,exploretheenvironment

DESCRIPTION

Jenkinsisapopularopen-
sourcetoolforContinuousIntegrationandContinuousDeployment(CI/CD)insoft
waredevelopment.Herearethestepstoinstalland setup Jenkins:
Downloadandinstall Jenkins:
• Download the Jenkins package for your operating system from
theJenkinswebsite.
• Followtheinstallationinstructionsforyouroperatingsystemtoinstall
Jenkins.
StarttheJenkinsservice:
• On Windows, use the Windows Services Manager to start the
Jenkinsservice.
• OnLinux,usethefollowing commandtostarttheJenkinsservice:
$ sudo service jenkins
startAccesstheJenkinswebinterfac
e:
• Openawebbrowserandnavigatetohttp://localhost:8080toaccess
theJenkinswebinterface.
• Ifthe Jenkinsserviceisrunning,youwillsee theJenkinslogin
page. InitializetheJenkinsenvironment:
• Follow the instructions on the Jenkins setup wizard to initialize
theJenkinsenvironment.
• Thisprocessinvolvesinstallingrecommendedplugins,settingupsecurity,
and creatingthe firstadmin user.

ExploretheJenkinsenvironment:
• Once the Jenkins environment is set up, you can explore the
variousfeaturesandfunctionalities available inthewebinterface.
• Jenkins has a rich user interface that provides access to features
suchasbuild history,buildstatistics,and system information.
These are the basic steps to install and set up Jenkins. Depending on your
usecase, you may need to customize your Jenkins environment further.
Forexample,youmayneedtoconfigurebuildagents,setupbuildpipelines,or

SIIET Page4
lOMoAR cPSD| 16948736

integrate with other tools. However, these steps should give you a
goodstarting point for using Jenkins for CI/CD in your software
developmentprojects.

Installing Jenkins over Windows


Step 1: First, we have to visit jenkins.io as shown in the figure
below:

Step 2: We have to click the download button for available download options.

Step 3: We will get a download page as shown above where we have windows
option and also generic package (war) option. We
SIIET Page5
lOMoAR cPSD| 16948736

can install Jenkins on Windows by both of these options.


Step 4: After download any of the two we get the following acknowledgment
page.

Step 5: Checking Java prerequisite: Before installing Jenkins we have to check


Java installation in our system.
Step 6: Check and install suitable Java version on your system(java 11 latest
version) and set environ variable as shown below:

Step 7: Also append Java path in the path variable there with Java path up to
bin subfolder.

SIIET Page6
lOMoAR cPSD| 16948736

Step 8: Reboot your system after setting environment variables


Step 9: When the system comes up again then check the Java version in your
command prompt with the command java – version
like this:

Step 10: Installing Jenkins with MSI installer option

After this installation is finished Jenkins will be available as windows service.

SIIET Page7
lOMoAR cPSD| 16948736

Step 11: Installation of a common part after any of the two options of
installation done up till now:
Now by any of the two above installation we have Jenkins service available
and running and our next task is two open a browser
window and type localhost:8080 and we will get the following screen:

Step 12: This is a security step as we have the option to start this service
through web from anywhere and to avoid security breach
we have to supply a number to the above textbox, this number is available at
user/username/, Jenkins/secret folder in a password
file, open that file and copy the number and paste it in the above textbox as
shown below:

SIIET Page8
lOMoAR cPSD| 16948736

Step 13: After admin configuration, we have to configure the necessary plugins
for which we will get the following screen and we
can choose either of the two options

Step 14: After choosing any one of the above options the plugins will
start installing as shown:

Step 15:After Installing plugins configure admin details.we have to create


an admin account as shown

SIIET Page9
lOMoAR cPSD| 16948736

Step 16: After plugins installation is over (we can add or remove plugins any
time) we will get the following screens and we are
ready to work on Jenkins in Windows.

VIVAQUESTIONS
DefineJenkins

SIIET Page10

You might also like