RepositoryGroovyNLNetherlands
politie

politie/pipeline-library

Jenkins shared library for use with pipeline-as-code

102stars
83forks
0issues
1views

🛠️ 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.

RepositoryJava
jenkinsci/jenkins

Jenkins automation server

26.8k
Nov 22, 2026
RepositoryJava
jenkinsci/jenkinsfile-runner

A command line tool to run Jenkinsfile as a function

1.2k
Jul 13, 2026
RepositoryGroovy
jenkinsci/JenkinsPipelineUnit

Framework for unit testing Jenkins pipelines

1.6k
Nov 16, 2026
RepositoryGo
myntra/pipeline

Pipeline is a package to build multi-staged concurrent workflows with a centralized logging output.

485
Mar 14, 2024
RepositoryJava
CloudWithVarJosh/Jenkins-Basics-To-Production

Includes day-wise notes, Jenkinsfiles, pipeline examples, and hands-on resources to learn Jenkins CI/CD from scratch to production-ready workflows.

263
Jan 6, 2026
RepositoryJavaScript
nvuillam/npm-groovy-lint

Lint, format and auto-fix your Groovy / Jenkinsfile / Gradle files using command line

245
Nov 15, 2026
RepositoryJava
jenkinsci/remote-file-plugin

Remote File Plugin Repository

58
Jul 29, 2026
RepositoryGroovy
gradle/gradle

Adaptable, fast automation for all

18.9k
Nov 19, 2026
RepositoryGroovy
apache/groovy

Apache Groovy: A powerful multi-faceted programming language for the JVM platform

5.5k
Nov 23, 2026