Thaum twg yuav tsum On_success On_failure ib txwm phau ntawv lossis ncua?
Thaum twg yuav tsum On_success On_failure ib txwm phau ntawv lossis ncua?

Video: Thaum twg yuav tsum On_success On_failure ib txwm phau ntawv lossis ncua?

Video: Thaum twg yuav tsum On_success On_failure ib txwm phau ntawv lossis ncua?
Video: kuv yog tus thaum koj thuam Tub huas Xyooj MV 2023 2024, Hlis ntuj nqeg
Anonim

on_success - Ua haujlwm tsuas yog thaum txhua txoj haujlwm los ntawm theem ua ntej ua tiav. Qhov no yog lub neej ntawd. ntawm_failure - Ua haujlwm tsuas yog thaum tsawg kawg ib txoj haujlwm los ntawm theem ua ntej ua tsis tiav. ib txwm - Ua haujlwm tsis hais txog cov xwm txheej ntawm txoj haujlwm los ntawm theem ua ntej.

Ua kom pom qhov no, GitLab CI Yml yog dab tsi?

gitlab - ci . yml ib file yog a YAML cov ntaub ntawv uas koj tsim ntawm koj qhov project lub hauv paus. Cov ntaub ntawv no cia li khiav thaum twg koj thawb kev cog lus rau lub server. Qhov no ua rau muaj kev ceeb toom rau lub tus khiav koj teev hauv #3, thiab tom qab ntawd nws ua cov haujlwm uas koj tau teev tseg.

Ib tug kuj yuav nug, Kuv yuav tsim lub raj xa dej hauv GitLab li cas? Tsim ib qho kev txuas txuas txuas ntxiv nrog GitLab thiab Jenkins

  1. Kauj ruam 1: Tsim ib qhov project GitLab.
  2. Kauj ruam 2: Configure SSH nkag mus rau qhov project GitLab.
  3. Kauj ruam 3: Txuas koj qhov project nrog GitLab repository.
  4. Kauj ruam 4: Configure Jenkins.
  5. Kauj ruam 5: Tsim ib qhov project Jenkins.
  6. Kauj ruam 6: Tsim ib ceg GitLab rau Jenkins.
  7. Kauj ruam 7: Txuas GitLab thiab Jenkins.

Qhov thib ob, GitLab siv rau dab tsi?

GitLab yog lub web-based DevOps lifecycle cuab tam uas muab Git-repository tus thawj tswj muab wiki, teeb meem-mus txog qhovtwg thiab CI/CD pipeline nta, siv daim ntawv tso cai qhib, tsim los ntawm GitLab Inc.

CI hauv GitLab yog dab tsi?

GitLab CI (Nruam Integration) kev pabcuam yog ib feem ntawm GitLab uas tsim thiab sim cov software thaum twg tus tsim tawm pushes code rau daim ntawv thov. GitLab CD (Nruam Deployment) yog qhov kev pabcuam software uas tso cov kev hloov pauv ntawm txhua tus lej hauv kev tsim khoom uas ua rau txhua hnub xa tawm ntawm kev tsim khoom.

Pom zoo: