0% found this document useful (0 votes)
97 views15 pages

Devops Unit 4

devops unit4

Uploaded by

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

Devops Unit 4

devops unit4

Uploaded by

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

Desps UNIT- H

and Buld Ppeioes


’Buitd Systes
>Jenkins Buid SenveX ’Build Sevex
Shuchure ay Code

>Managing Buid Dependencies


>Jenkins plugins >Builing by Dependency Order
Sgtmt Bustd phases
’Altexratve Butld Servexs
The tHost Seves measuxes
Build slaves
Sotwoye on the Host
’Tgget

ns lectures youtube channel


Budd Systems and tert
Buikd
or not. ond
Code (ode is
an eyerutablo
will
Poçkage code . if it win (rate

’Mony
Systmis hare bun Pel(roatad
ike thevre
Sthuare development Sormefimes :" :t teie
more thon
are

Maen,
Gnvodle and Ant
Java - Uses
c and C++ i- Uie MaleVaris Vesions
o t and tavea
Sejure Uses Lesings
Java Seeipt: Uses Gunt
Scala
Uses Rake
Varis kindi
shei! Soipts
and the type yoare
Daperdg Sorre (onponiel even Cyete thesy
butld troI
hadordt.
’ nority. mony lompaniy wil ule
ony
ot Aient., tor example
t
easie
t is
with Giyunt, then. -wth maven
Litding ma ke. Soweeed
to use eot trls..bod uY
ns lectures youtube channel
)
ggod ehekat
(ode +hew loc machine 'wtht
Probloms
lon

Combine ths rakes. ings Sinpler ond 'alaws


Ant buld
Jova
install projakt.
java Gad, uns the tyt,
ths ammnd,. oples
and Sshore ond Sae it tn you
Jenkins Buld Sevey
>Buld Server mocine that ons he build proen
is

atomaicaty suild Srver use he


Compile Gdei tontast! ond Crete ceuteule"la
sla buldSver is Jenkins, which i wnten in Java.
poplar
’Tenkins begon prejot named tHudkon. ben orade
-trok Oye? tudion, Originel Crstor, shake Kaunguhi,
kept jenkns a Veaien. ody
jonkins rore
Pepalar tha Hhudion.
)Jenkins Pams for
othe
build Saore Je ns lectures youtube channel
Tankins is t ro ett. tor
kotu Linus,'you Can io stall Jankins usingthe
Commond:
Sudo opt-t stae jnkens
’ t t e jenkins Srvice uing (ommamd
jwkns
acces
Jenkins shaul ow be
brwser' atul"tp://oclhost : o9o
to chek Ststy Jenkins Serie,'use Comnand
Sudo
Oigon'zed iatojobi. Jobs Can
Vansuy toiks
taiks ke
:ke bmping (ode. onig. tests, or
ápliatond, Tonkins helpi atomate they toks, nakmit
eatefer deyeloprs mangend
manage and taublhot ther sohuare
projat. (ontinua. intgntion
=)Jenkns
Gotinuey :t nsaey
end: c a .

ns lectures youtube channel


Monaging Build Dependencies
in Sirnple terms, vefexto o
nee ds
sotuee Gomponenti OY your opplication
buil ond dun you applicetion,
in ovdey
Suyaty
Sshns :ke maven and Gnunt
Sone .Create depordances (ike þom. XnlBa)
boled Projects
Ctt Prjak:, rola I:ke.GNu Atotrols

nd Landle depo denies dfnthy Compond


-to trols lke . nave n. tostead
mese tols wil ; use depedency thot a avalable.
are

t s oaly inpotant to Kow


exactywhat eshres your Sothunre wil have, jou dont
Knos otomes d yuur Sotuware it Causey:untzpecttd problans
tor cxopli misl estury or untioy when
ta Qveys that Cuttornes use
:ke Rprt(Red tat Pakage mng
nena)ofra Sshton
when upload o pojut iato RPM w proide
Spkiaon
and
depndnis

ns lectures youtube channel


Jen kins plogns evka esthes to its buill Server.
Con be
hee many plins avasle ond. hy
web iateface
akins
dy
io stalled
) Some plugins Can even bo insbeld wthot e rybarting
Gur
the jenkins to put
ohar plgins, we ned the qit pugin
Souie Code putt
Docker
pligin
ostanne
nkins maven jeve
Projabt
plgin
-Appiatin
Junit
H
Sekni plugin Unittest
plugin
topue
toinr
intgrtin

reters to bow les


he andmanaged
are
Or
Systns
diectoris environnt. 5a ineludes
within DevOps.
Dyplymant toucharti
Prhatin Ogane
depodndy are

Sovers or (ontainers .
ns lectures youtube channel
are

Shuctured nd Gtored

are
Cde epostorviel

trs bu'ld attots are


Stored in epositorid
enbres
a well
aross
to
enhionienti 1ke dqyelopmt, tarting. produchm
atomten ond
The tost Server
t Cfhaave alotSrnr
Geati
pplcein plaad
hat Sorver end Ulers t
the buld Sever is a Vony iogotet Compater Organ ctin
ond diklaa.
Pt, pauing ld Sons d to
to eosure
grod Spech atirn oith hiqh duk Space nd RAM.
Spacthabn
heve
Seveswll
Busl
taves mwt befot Since modwney than ople,
(on invet you monyon good machinyns lectures youtube channel
Build Slaves
lo make build proesco! faster io Jenkins, you Con add
Server (mast)
exta Srers Called buld aves. the man
Sondi tasks to Hhese sae, ether in Xaund Yobin way
baied Secfe ned. Some tak ned patteular operatingy
Systems, loo having t buld caves Lalps. tor eample
Jru might have Lnud master Seivey but nad
Mac SSaves nr Contain taks
Por
rutiple bulla t once nd
aed lets you Ton
Ustng buld save
buill Sotwave zadey
Sytens. tor otance, Appdet xules
make t tidy to use Mac

Sotsare So
clare helgtul.
are, Sovel ys to Connet buld Slaves -to tthe master
One omm rmethod i Sst; ad Jenkins hay builb-in Suppost
for it. Another mthod in volved Java dintTNe)
in te moster to'Slave,
doent. Suppot sSH
Jenkin
master

wlhdo!
mac

master sla Abtturt


ns lectures youtube channel
to buwld wads
Sonebey H Oole
cotth MinG,

we Lold
bonk might
Compaia like talaloms and
Ue

Speche (ode nance

on Seporate mabnes
nyype
)
So

yowr busld envimnt to meih those necd


SePtuare On the Hot

Y,Jonkins is
ypu
buLds but
usd ti ta,t busls,. t dohe actual busld'ng
tool :ke maveri or naKe,
buld k à done
aduel Bld
Lut to use
ulually most buld tools Can be stalled
bul Qorver.
your
instoll sowere and wplates
Con updte bold Sever Sane like updang
opplcin Sererd,
ns lectures youtube channel
Tiagers
Start Laton that bagineventt achn
Atiggr :ke
lotatn Gonditons
acnetaly bad
balds at Speok tmeg
Con. Gt a tmir o Xun onsure buld happen
yonu -ths
:ke evey

polbny
l:ke
Jeakos Con
Jenkins check you yY (ode iaposito
-Horind,J.kn torts
Start! a bild actematially
Lasldt to- date. wth the Datest (ode

Rese Chdled Ltde tat Yon at light, Uaty


hen thes nitt blls take
chack t in net uortng y.
(u) up team and Douwn Geearn Basld.
it Can
One

trigge anther job Can Sheam bosld)


Lalos otomate he bld process, ensorhg
Gthsare Lit and tastd cthotnty
ns lectures youtube channel
B:sd
meanC
Ja Jeakins, job chaining
One
Suertay,where it octomsialy Start anotherjdl,
vioy
each ob depnd om the pr
(reates
lomngebng wthoat any
upsteam bstd, nd henst
Called the tsks Sornetmes
whide bas'e yob chainig
you aed nore (omplex osock!
ke te uokPlas lugin, hich lat (rate
advaned ppelines

aach tp bwtd proas moe

to
ensire tasks hopen
,

manege and atomt dplopnt taks


(onnated
Stage View
(ode
Qw tut
Soms
dnload
SS
(90ms
Varly Sues
test,
opurshns
(otans
Stript to iperor
k e Bwtdi,
ta t . .
d y l y ab.

ns lectures youtube channel


Bubd Servexs ond loa Structoe ad Code
when we talk abot we Can manag Our Serveá
Code, Sare :ke (ode to Crete
Qtare

()Jnkins intras
Jot Lut mast propk
Jenkins use t t aks,
ehargis
ue 'pakins wnb latertae to make
to
wihot
Paues tht kke,
Bad Side'- mising Sore

bnd Qalier
kke
proger Con
. Lld tak eay dant ad

'yenkins. Gitlab mtght


Ule
be Simplar and more

ns lectures youtube channel


Oder
Dyendonynedto be built
Some pads
bevaute hy dyande Osch other. you Con da it by sing
Vanous
Lold tool
maketrl:
-tools l:ke make
in
a.out :b.o C.0
bomple
o, So 'b.o' and'co
b.o' and c
means 'a.oat'dupnda
buld at
must be (nrodle:
Maven and busld
l:ke maven and
dpudnis you defni "rator'" toranae
qroph Called the
busld beore
Maven Uses a
hradle alo Craates Gnaph
Jeakins;
Jorkins Con
nedt
comple.Code panta lombin pat
Gompila

ns lectures youtube channel


)
Build phases
mak4 Sure evemonefolat
’Maven is a-bold rol hat
CoAhware.
Sane
big Conpanies
Companied because
Mavn othetols.
Sep's T:ke slding
ovder
Maven Veg fsctly other hrol ke Ant .ghve
dploymnt. wheros daorgeed buld.
tusting rdom but it con end t
more
lead
Busld phald

Tating:- Runnng tests t ath errms


podut to Seaver
Day'rodng.
maven
Gtret ordar but other hrol, moy
Sone

CGontinuoug lategrin (er) Saver


trgorbant. Ad
a Veny astonted test
cwile Cateh erors
wth t
maveo

Gep tke tat'ng. Alternatve BuildSeers

Jen kns a' a popular toelfor


other ophons oo
ns lectures youtube channel
lravis (I:: plar or op oy projukt
In. python
mtten In
Go Sever:. Doloped by Thought
Bembosi tted by Atasian lonpa.
Al baw bld Screrhy
oit Lab:.
Seees anlable,
Tkere ae
tesm

CoMatin Guaity measuye S

help trock ond inrove


Abusld Sever Con
prvidng teing Yosult
Can yun Java it tyti and sh
Janfins
hat providet datal CGde qualhy
shejob puge Sonar is a osl
a
proeys and Sonda
reports. Sonar Yuns tsts
See
esult toa Sonar vr, Daeloprs Can
epoti Gde qudty and mproremets Run Gmartest
(onar tst Can make
Reniny
ontor an
monttor
tke jen kins and Sonar Can hasp
Usig byt to.un tut ke Sonar
bot t
leprove (ode quality,
to avod ns lectures youtube channel

You might also like