diff --git a/pages/guides/ci-cd/jenkins-docker-ci-cd.en-UZ.mdx b/pages/guides/ci-cd/jenkins-docker-ci-cd.en-UZ.mdx index a225b1b..57f0b7d 100644 --- a/pages/guides/ci-cd/jenkins-docker-ci-cd.en-UZ.mdx +++ b/pages/guides/ci-cd/jenkins-docker-ci-cd.en-UZ.mdx @@ -58,6 +58,10 @@ Biz ilovamizni Docker containerlarda ishga tushiramiz shuning uchun serverimizg Applicationlarimiz kodlarini birorta **VCS**(**V**ersion **C**ontrol **S**ystem)da saqlanadi ushbu amaliyotda **Github** va **Gitlab** bilan ishlaydigan Jenkins CI pipeline yozamiz. Gitdan private repositoriyalarni klon qilib olish uchun ushbu repositoriyalarga ruxsati bor userlardan **Personal access token** tokenlar olinadi va Jenkins credendialsga qo'shib qo'yiladi. Bundan maqsad Jenkins pipeline ushbu Personal access token orqali Github yoki Gitlabdan private repositoriyalarni clon qila olishi va ishlata olishidir. + +**ESLATMA->** Ko'p startuplar kichik jamolar **Github** ishlatishadi, boshqalar esa enterprise **Gitlab**ni o'z seerverlarda ishga tuhsirib ishlatishadi. Bu amaliyotda 2lasi bilan ham ishlash yozilgan. Sizning jamoyingiz qaysi birini ishlatsa shunga mosini qo'llaysiz. + + **Personal access token olish** ### Github uchun @@ -82,4 +86,31 @@ Keyin **Developer settings** bo'limga kiring. Sizga Github Personal access token generatsiya qilib beradinsiz uni nusxalab olib qo'yishingiz kerak bo'ladi. Bu Personal access tokenni Jenkinsda credentialsga qo'shib qo'yib Jenkins pipelineda ishlatamiz. >![docker-ci-cd](/images/tutorials/ci-cd/jenkins-docker/github6.png) -### Gitlab uchun \ No newline at end of file +### Gitlab uchun + +Gitlab profilingizga kirib **Pereferences** bo'limga kirib **Accsess Tokens**ga o'tamiz. + +>![docker-ci-cd](/images/tutorials/ci-cd/jenkins-docker/gitlab1.png) + +>![docker-ci-cd](/images/tutorials/ci-cd/jenkins-docker/gitlab2.png) + +**Accsess Tokens**ga kirganimizdan keyin Token nomi ishlash muddatini belgilab kerakli ruxsatlarni berib **Create personal accsess token** bosib Gitlab token generatsiya qilib olamiz. + +>![docker-ci-cd](/images/tutorials/ci-cd/jenkins-docker/gitlab3.png) + +O'zingiz ishlatdigan VCSdan access token generatsiya qilib olganingizdan keyin Serverimizda ishga tushirilgan Jenkinsga kirib credentialsga ushbu tokenlarni qo'shib qo'yamiz. + +**->** `Manage Jenkins` **->** `Credentials` + +>![docker-ci-cd](/images/tutorials/ci-cd/jenkins-docker/jenkins1.png) + +**Username->** Gitlab yoki Github username + +**Password** Gitlab yoki Gitlabdan genreatsiya qilib olgan personal access tokenni joylashtiramiz. + +Jenkinsnga Gitlab yoki Githubdan private repositorilarni klon qilib ishlashi uchun accsess tokenni joylashtiurib sozlaganimizdan keyin birinchi Jenkins CI pipelineni yozsak bo'ladi. + + +## Birinchi CI pipeline + +Hozirchi hammasi tayyor birinchi Jenkins CI pipelinemizni yozsak bo'ladi. \ No newline at end of file diff --git a/public/images/tutorials/ci-cd/jenkins-docker/gitlab1.png b/public/images/tutorials/ci-cd/jenkins-docker/gitlab1.png new file mode 100644 index 0000000..3583277 Binary files /dev/null and b/public/images/tutorials/ci-cd/jenkins-docker/gitlab1.png differ diff --git a/public/images/tutorials/ci-cd/jenkins-docker/gitlab2.png b/public/images/tutorials/ci-cd/jenkins-docker/gitlab2.png new file mode 100644 index 0000000..c2de6f3 Binary files /dev/null and b/public/images/tutorials/ci-cd/jenkins-docker/gitlab2.png differ diff --git a/public/images/tutorials/ci-cd/jenkins-docker/gitlab3.png b/public/images/tutorials/ci-cd/jenkins-docker/gitlab3.png new file mode 100644 index 0000000..5cc5e20 Binary files /dev/null and b/public/images/tutorials/ci-cd/jenkins-docker/gitlab3.png differ diff --git a/public/images/tutorials/ci-cd/jenkins-docker/gitlab4.png b/public/images/tutorials/ci-cd/jenkins-docker/gitlab4.png new file mode 100644 index 0000000..a93bb90 Binary files /dev/null and b/public/images/tutorials/ci-cd/jenkins-docker/gitlab4.png differ diff --git a/public/images/tutorials/ci-cd/jenkins-docker/jenkins1.png b/public/images/tutorials/ci-cd/jenkins-docker/jenkins1.png new file mode 100644 index 0000000..a02d5cf Binary files /dev/null and b/public/images/tutorials/ci-cd/jenkins-docker/jenkins1.png differ