Cov txheej txheem:

Kuv yuav ua li cas ntxiv ib qho kev tsim ua haujlwm hauv Jenkins?
Kuv yuav ua li cas ntxiv ib qho kev tsim ua haujlwm hauv Jenkins?

Video: Kuv yuav ua li cas ntxiv ib qho kev tsim ua haujlwm hauv Jenkins?

Video: Kuv yuav ua li cas ntxiv ib qho kev tsim ua haujlwm hauv Jenkins?
Video: Yuav ua li cas thiaj khiav dim lub ntiajteb no 2024, Kaum ib hlis
Anonim

Tsim Kev Ceeb Toom Txog Kev Ua Haujlwm

  1. Qhib koj Jenkins Web Portal.
  2. Qhib koj qhov project configuration screen.
  3. Hauv Tshaj tawm - tsim Ua ntu ntu, nyem Ntxiv ncej - tsim kev nqis tes ua thiab xaiv Execute scripts.
  4. Nyem Ntxiv cov kauj ruam tsim thiab xaiv SUCCESS hauv daim ntawv teev npe.
  5. Nyem Ntxiv cov kauj ruam tsim thiab xaiv Execute managed tsab ntawv .

Ib yam li ntawd, nws tau nug, Kuv yuav ua li cas thiaj li khiav lub plhaub ntawv hauv Jenkins?

Nov yog cov kauj ruam los ua kom tiav daim ntawv plhaub hauv Jenkins:

  1. Hauv nplooj ntawv tseem ceeb ntawm Jenkins xaiv Cov Khoom Tshiab.
  2. Ntawm nplooj ntawv teeb tsa, hauv Build block nyem hauv Add build step dropdown thiab xaiv Execute plhaub.
  3. Hauv textarea koj tuaj yeem paste ib tsab ntawv lossis qhia yuav ua li cas khiav ib tsab ntawv uas twb muaj lawm.
  4. Nyem Txuag.

Kuj Paub, koj hais li cas ib kab hauv Jenkins pipeline tsab ntawv? 4 Teb. Koj siv tau thaiv (/***/) los yog ib leeg kab lus (//) rau txhua tus kab . Koj yuav tsum siv "#" hauv sh command. Cov lus pom ua haujlwm zoo nyob rau hauv ib qho ntawm cov ntawv Java / Groovy ib txwm, tab sis tam sim no koj tsis tuaj yeem siv groovydoc los ua koj cov Jenkinsfile (s).

Tom qab ntawd, lo lus nug yog, Jenkins cov ntaub ntawv yog dab tsi?

Tsim ib Jenkinsfile . Raws li tau tham nyob rau hauv Defining a Pipeline hauv SCM, a Jenkinsfile yog ntawv ntaub ntawv uas muaj cov ntsiab lus ntawm a Jenkins Pipeline thiab raug txheeb xyuas hauv qhov chaw tswj. Xav txog cov Pipeline hauv qab no uas siv cov kav dej txuas mus txuas ntxiv peb-theem.

Jenkins pipeline tsab ntawv yog dab tsi?

Hauv cov lus yooj yooj yim, Jenkins Pipeline yog ib qho kev sib txuas ntawm cov plugins uas txhawb kev sib koom ua ke thiab kev siv ntawm kev xa khoom tas mus li cov kav dej siv Jenkins . A cov kav dej muaj ib tug extensible automation server rau tsim yooj yim los yog complex xa cov kav dej "raws li code," via cov kav dej DSL (Domain-specific Language).

Pom zoo: