Cov txheej txheem:

CI CD pipeline ua haujlwm li cas?
CI CD pipeline ua haujlwm li cas?

Video: CI CD pipeline ua haujlwm li cas?

Video: CI CD pipeline ua haujlwm li cas?
Video: CI/CD with Jenkins declarative pipeline (Borys Zora and Serhii Petrychenko, Ukraine) [UA] 2024, Kaum ib hlis
Anonim

A CI / CD tub pab koj automate cov kauj ruam hauv koj cov txheej txheem xa khoom software, xws li pib tsim cov cai, khiav cov kev xeem tsis siv neeg, thiab xa mus rau qhov chaw ua haujlwm lossis chaw tsim khoom. Automated cov kav dej tshem tawm phau ntawv yuam kev, muab cov txheej txheem kev txhim kho kev tawm tswv yim loops thiab pab kom cov khoom lag luam nrawm dua.

Ua kom pom qhov no, CI CD pipeline yog dab tsi?

A CI / CD Pipeline Kev siv, lossis Kev Sib Txuas Txuas Ntxiv / Kev xa mus tas li, yog lub pob txha caj qaum ntawm ib puag ncig niaj hnub DevOps. Nws txuas qhov sib txawv ntawm pawg txhim kho thiab kev ua haujlwm los ntawm kev siv lub tsev, kev sim, thiab kev xa mus rau cov ntawv thov.

Kuj Paub, dab tsi yog tsim hauv CI CD? Thaum twg muaj kev hloov pauv ntawm qhov chaw khaws cia, a CI server tshawb xyuas cov kev hloov pauv thiab ua qhov " tsim thiab sim." A tsim thiab xeem yog thaum lub CI server tsim tag nrho cov system ntawm tus tsim tawm feature ceg thiab khiav tag nrho cov chav tsev thiab kev sib koom ua ke kev xeem. Cov CI server ceeb toom rau pab pawg ntawm cov txiaj ntsig kev koom ua ke.

Ib yam li ntawd, koj ua CI CD pipeline li cas?

Yuav ua li cas los tsim ib tug niaj hnub CI / CD pipeline

  1. Sau me ntsis Python program (tsis nyob zoo ntiaj teb)
  2. Ntxiv qee qhov kev xeem automated rau qhov program.
  3. Thawb koj tus lej rau GitHub.
  4. Teeb Travis CI kom ua haujlwm tsis tu ncua ntawm koj cov kev xeem automated.
  5. Teeb Zoo Code Hub mus txuas ntxiv xyuas koj cov cai zoo.
  6. Tig Python program rau hauv lub vev xaib app.
  7. Tsim ib daim duab Docker rau lub vev xaib app.

Jenkins puas yog CI lossis CD?

Jenkins yog qhib qhov chaw automation server sau hauv Java. Nws yog siv los txhim kho thiab sim cov haujlwm software txuas ntxiv, ua kom cov neeg tsim khoom teeb tsa CI / CD ib puag ncig. Nws kuj txhawb kev tswj hwm cov cuab yeej xws li Subversion, Git, Mercurial, thiab Maven.

Pom zoo: