Chuyển tới nội dung chính

Hướng dẫn tạo Jenkins pipline CI/CD tích hợp các tính năng trên Portal

Mô hình hệ thống CI/CD sử dụng các thành phần bao gồm:

STTTên hệ thốngCông cụ sử dụng
1Source code ManagementGitlab
2CI serverFPT Jenkins CI
3CDFPT ArgoCD
  1. Login vào Jenkins với username/pass trên portal:
  2. Trên FPT Cloud Portal tạo credential để sử dụng trong pipeline bao gồm: -Credential với kind User with Password để authenticator cho gitlab, Container Registry: -Credential với kind Secret Text để authen cho SonarQube:
  3. Cấu hình sonarqube server để thực hiện Scan Code trong pipeline
  4. Cấu hình Email Notifications trên FPT Cloud Portal để tích hợp trong pipeline
  5. Tạo job với loại Pipeline để thiết lập một luồng CI/CD cơ bản: Click New Item hoặc Create a job để tạo một pipeline jobs CI/CD: Nhập thông tin tạo jobs: Cấu hình pipeline jobs với pipeline script. Có 2 lựa chọn để cấu hình jenkinsfile: Cách 1: Nhập script pipeline qua giao diện Jenkins: Cách 2: Sử dụng Jenkinsfile để cấu hình pipeline script từ source code: Pipeline chạy jobs: