Devops exp-3&4
Devops exp-3&4
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
• Stagethechanges:$gitaddnewfile
• Commit the changes: $ git commit -m "Added source code for
anewfile"
• Pushthechangestotheremote repository:$gitpushoriginmaster
SIIET Page2
lOMoAR cPSD| 16948736
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.
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
Step 7: Also append Java path in the path variable there with Java path up to
bin subfolder.
SIIET Page6
lOMoAR cPSD| 16948736
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:
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