Netherlandspolitie/pipeline-library
Jenkins shared library for use with pipeline-as-code
🛠️ Thư viện pipeline chuẩn cho Jenkins Pipeline-as-Code
Thư viện Groovy dùng chung cho Jenkinsfile, hỗ trợ cấu hình và triển khai ứng dụng Maven.
pipeline-library là thư viện chia sẻ Jenkins (Jenkins Shared Library) bằng Groovy, giúp bạn triển khai pipeline-as-code một cách nhanh chóng. Dự án do nhóm phát triển của politie tạo ra, cung cấp các hàm và bước (step) tái sử dụng để xây dựng pipeline trong Jenkinsfile.
✨ Điểm nổi bật
- Cấu hình tập trung: Sửa
Constants.groovyđể thiết lập URL GitLab, SonarQube và các tham số môi trường. - Tích hợp dễ dàng: Thêm repo đã fork vào Jenkins tại Manage Jenkins > Configure System > Global Pipeline Libraries.
- Bootstrap nhanh: Dùng
JenkinsPipelineBootstrap().createBuilder()để khởi tạo pipeline. - Hỗ trợ Maven: Hàm
builder.mavenApplicationPipeline(serviceName, gitBranch)triển khai pipeline Maven. - Tái sử dụng step: Tận dụng các step tùy biến trong
JenkinsPipelineSteps.groovy.
💡 Vì sao đáng chú ý
Thư viện này giúp giảm lặp code pipeline bằng cách đóng gói các logic chuẩn thành hàm dùng chung. Thích hợp với các nhóm dùng Jenkins và muốn chuẩn hóa cách build/deploy ứng dụng Maven qua Jenkinsfile.
#Jenkins #PipelineAsCode #Groovy #SharedLibrary #TiniX
Similar Projects
Discover other similar projects and AI models.
Pipeline is a package to build multi-staged concurrent workflows with a centralized logging output.
Includes day-wise notes, Jenkinsfiles, pipeline examples, and hands-on resources to learn Jenkins CI/CD from scratch to production-ready workflows.
Lint, format and auto-fix your Groovy / Jenkinsfile / Gradle files using command line
Apache Groovy: A powerful multi-faceted programming language for the JVM platform