Cov txheej txheem:

Kuv yuav hloov lub chaw ua haujlwm li cas hauv Jenkins pipeline?
Kuv yuav hloov lub chaw ua haujlwm li cas hauv Jenkins pipeline?

Video: Kuv yuav hloov lub chaw ua haujlwm li cas hauv Jenkins pipeline?

Video: Kuv yuav hloov lub chaw ua haujlwm li cas hauv Jenkins pipeline?
Video: nyiag nkag koj tus hluas nkauj tus messenger ua koj twb g paub password 2024, Hlis ntuj nqeg
Anonim

Thoob ntiaj teb Hloov tus qhov chaw ua haujlwm rau txhua Txoj Haujlwm

Nkag mus rau Jenkins -> Tswj Jenkins -> Configure System thiab nyem rau ntawm Advanced Button ntawm sab xis sab xis. Tam sim no koj ua tau hloov koj chaw ua haujlwm thiab tsim phau ntawv rau lwm yam qhov chaw ntawm koj lub tshuab.

Tom qab ntawd, kuv yuav hloov kuv phau ntawv teev npe hauv tsev hauv Jenkins li cas?

Rau hloov tus Jenkins home directory koj tsuas yog yuav tsum teeb tsa "JENKINS_HOME" ib puag ncig hloov pauv kom taw tes rau qhov chaw tshiab. Koj tuaj yeem ua tau teeb JENKINS_HOME raws li cov cuab yeej cuab tam lossis JNDI ib puag ncig nkag raws li tau piav qhia hauv cov ntaub ntawv.

Kuv yuav rho tawm qhov chaw ua haujlwm hauv Jenkins pipeline li cas? Rau rho tawm ib daim ntawv teev npe tshwj xeeb ntawm a chaw ua haujlwm qhwv cov kauj ruam deleteDir hauv ib kauj ruam dir.

Ua raws li cov kauj ruam no:

  1. Nkag mus rau qhov kev tsim kho tshiab kawg ntawm txoj haujlwm kav dej uas koj xav ntxuav qhov chaw ua haujlwm ntawm.
  2. Nyem qhov Replay txuas hauv LHS ntawv qhia zaub mov.
  3. Muab cov ntawv sau saum toj no rau hauv lub thawv ntawv thiab nyem Khiav.

Tib neeg kuj nug, Jenkins workspace directory yog dab tsi?

Cov chaw ua haujlwm directory yog qhov twg Jenkins tsim koj qhov project: nws muaj qhov chaws Jenkins kos tawm, ntxiv rau cov ntaub ntawv tsim los ntawm kev tsim nws tus kheej. Qhov no chaw ua haujlwm rov siv dua rau txhua qhov kev tsim ua tiav.

Kuv yuav nrhiav tau kuv qhov chaw ua haujlwm hauv Jenkins li cas?

5 Teb

  1. Mus rau Jenkins tsim.
  2. Nyob rau sab laug tes nyem cov kauj ruam Pipeline.
  3. Tom qab ntawd ntawm txoj cai nyem rau ntawm qhov txuas uas hais tias "Kev faib cov node: Pib - (x min hauv thaiv)"
  4. Nyob rau sab laug nyem qhov chaw ua haujlwm. Ua tiav!

Pom zoo: