Back to Trending
RepositoryShell
cathive

cathive/concourse-sonarqube-resource

performs SonarQube analyses and checks quality gates https://concourse-ci.org/ https://sonarqube.org/

51stars
47forks
5issues
3views

🔍 SonarQube Resource — Chạy phân tích chất lượng code trong Concourse CI

Tích hợp SonarQube vào pipeline Concourse CI để tự động phân tích và theo dõi quality gates.

Đây là một Concourse resource cho phép thực hiện các phân tích SonarQube trực tiếp trong pipeline CI/CD. Dự án hỗ trợ cả SonarCloud và các phiên bản self-hosted của SonarQube, đồng thời cung cấp ba hành động chính: check, in và out để điều khiển toàn bộ quy trình phân tích và kiểm tra kết quả.

✨ Điểm nổi bật

  • Phân tích tự động: Hỗ trợ cả SonarQube và SonarCloud, tự động chạy phân tích qua hành động out.
  • Theo dõi quality gates: Sử dụng in để lấy trạng thái dự án và kiểm tra xem có vượt qua quality gates hay không.
  • Hỗ trợ nhiều scanner: Tự động chọn Maven scanner nếu có pom.xml, hoặc dùng CLI scanner tùy cấu hình.
  • Quản lý nhánh: Tự động phát hiện tên nhánh Git, hỗ trợ cấu hình nhánh mục tiêu và PR.
  • Cấu hình linh hoạt: Hỗ trợ thiết lập project key, version, branch, nguồn và test qua file hoặc tham số trực tiếp.
  • Tích hợp PR: Tự động lấy thông tin pull request từ các resource như github-pr-resource để phân tích PR.
  • Hỗ trợ Maven settings: Cấu hình Maven settings riêng nếu sử dụng Maven scanner.
  • Chế độ debug an toàn: Cờ __debug giúp dò lỗi nhưng cần cẩn trọng trong môi trường sản xuất do rò rỉ thông tin xác thực.

💡 Vì sao đáng chú ý

Khác với cách cấu hình SonarQube thủ công trong từng bước build, resource này đóng gói toàn bộ logic phân tích và kiểm tra quality gate thành một thành phần tái sử dụng trong Concourse. Điều này giúp pipeline ngắn gọn, dễ bảo trì và đồng nhất quy trình chất lượng code.

Ngoài ra, dự án có thể kết hợp với concourse-sonarqube-qualitygate-task để dừng build nếu quality gate không đạt — tạo một cơ chế kiểm soát chất lượng chặt chẽ trong quy trình CI/CD.


#ConcourseCI #SonarQube #CodeQuality #ContinuousIntegration #QualityGates #TiniX

Similar Projects

Discover other similar projects and AI models.

RepositoryJava
mc1arke/sonarqube-community-branch-plugin

A plugin that allows branch analysis and pull request decoration in the Community version of Sonarqube

2.9k
Nov 16, 2026
RepositoryTypeScript
SonarSource/SonarJS

SonarSource Static Analyzer for JavaScript and TypeScript

1.3k
Nov 19, 2026
RepositoryOCaml
meta/infer

A static analyzer for Java, C, C++, and Objective-C

15.8k
Nov 20, 2026
RepositoryRust
analysis-tools-dev/static-analysis

⚙️ A curated list of static analysis (SAST) tools and linters for all programming languages, config files, build tools, and more. The focus is on tools which improve code quality.

14.9k
Nov 12, 2026
RepositoryJava
SonarSource/sonarqube

Continuous Inspection

11.2k
Nov 20, 2026
RepositoryJava
checkstyle/checkstyle

Checkstyle is a development tool to help programmers write Java code that adheres to a coding standard. By default it supports the Google Java Style Guide and Sun Code Conventions, but is highly configurable. It can be invoked with an ANT task and a command line program.

9.7k
Nov 20, 2026
RepositoryPython
pylint-dev/pylint

It's not just a linter that annoys you!

5.7k
Nov 20, 2026
RepositoryJava
pmd/pmd

An extensible multilanguage static code analyzer.

5.5k
Nov 15, 2026
RepositoryRust
tach-org/tach

A Python tool to visualize + enforce dependencies, using modular architecture 🌎 Open source 🐍 Installable via pip 🔧 Able to be adopted incrementally - ⚡ Implemented with no runtime impact ♾️ Interoperable with your existing systems 🦀 Written in rust

2.9k
Oct 29, 2026