All Projects → robsonbittencourt → Jenkins Dry In Pipelines

robsonbittencourt / Jenkins Dry In Pipelines

Licence: mit
Some useful generic funcions to use with Shared Libraries feature of Jenkins Pipelines

Programming Languages

groovy
2714 projects

Labels

Projects that are alternatives of or similar to Jenkins Dry In Pipelines

Dotci
DotCi Jenkins github integration, .ci.yml http://groupon.github.io/DotCi
Stars: ✭ 505 (+3784.62%)
Mutual labels:  jenkins
Opscloud
运维管理平台(阿里云),自动同步阿里云配置信息,堡垒机(容器),批量运维,Kubernetes,Zabbix管理等功能
Stars: ✭ 788 (+5961.54%)
Mutual labels:  jenkins
Mini Deploy
微信小程序发布助手 mini program
Stars: ✭ 26 (+100%)
Mutual labels:  jenkins
Kubesphere
The container platform tailored for Kubernetes multi-cloud, datacenter, and edge management ⎈ 🖥 ☁️
Stars: ✭ 8,315 (+63861.54%)
Mutual labels:  jenkins
Ansible Role Jenkins
Ansible Role - Jenkins CI
Stars: ✭ 689 (+5200%)
Mutual labels:  jenkins
Err Jenkins
errbot plugin for Jenkins
Stars: ✭ 18 (+38.46%)
Mutual labels:  jenkins
Docker
Docker official jenkins repo
Stars: ✭ 4,855 (+37246.15%)
Mutual labels:  jenkins
Jenkins4j
Simple and effective Jenkins API wrapper written in Java
Stars: ✭ 12 (-7.69%)
Mutual labels:  jenkins
Jenkinsfile Runner
A command line tool to run Jenkinsfile as a function
Stars: ✭ 727 (+5492.31%)
Mutual labels:  jenkins
Django Jenkins
Plug and play continuous integration with django and jenkins
Stars: ✭ 933 (+7076.92%)
Mutual labels:  jenkins
Newman
Newman is a command-line collection runner for Postman
Stars: ✭ 5,607 (+43030.77%)
Mutual labels:  jenkins
Spug
开源运维平台:面向中小型企业设计的轻量级无Agent的自动化运维平台,整合了主机管理、主机批量执行、主机在线终端、文件在线上传下载、应用发布部署、在线任务计划、配置中心、监控、报警等一系列功能。
Stars: ✭ 6,810 (+52284.62%)
Mutual labels:  jenkins
Docker Jenkins
Jenkins with Blue Ocean and support for builiding jobs in Docker
Stars: ✭ 18 (+38.46%)
Mutual labels:  jenkins
Jenkins Library
Jenkins shared library for Continuous Delivery pipelines.
Stars: ✭ 521 (+3907.69%)
Mutual labels:  jenkins
Pwn jenkins
Notes about attacking Jenkins servers
Stars: ✭ 841 (+6369.23%)
Mutual labels:  jenkins
Bzppx Codepub
暴走皮皮虾之代码发布系统,是现代的持续集成发布系统,由后台管理系统和agent两部分组成,一个运行着的agent就是一个节点,本系统并不是造轮子,是"鸟枪"到"大炮"的创新,对"前朝遗老"的革命.
Stars: ✭ 471 (+3523.08%)
Mutual labels:  jenkins
Medusa
🐈Medusa是一个红队武器库平台,目前包括扫描功能(200+个漏洞)、XSS平台、协同平台、CVE监控等功能,持续开发中 http://medusa.ascotbe.com
Stars: ✭ 796 (+6023.08%)
Mutual labels:  jenkins
Summary
个人总结 持续更新 欢迎提出各种issues
Stars: ✭ 12 (-7.69%)
Mutual labels:  jenkins
Uiauto
在docker搭建selenium grid集群环境(chrome+firefox)前提下,结合TestNG+ANT进行UI自动化测试。可使用jenkins持续集成。
Stars: ✭ 11 (-15.38%)
Mutual labels:  jenkins
Flutter engine build
Flutter Engine构建产物归档
Stars: ✭ 19 (+46.15%)
Mutual labels:  jenkins

Jenkins DRY in Pipelines

In software engineering, don't repeat yourself (DRY) is a principle of software development aimed at reducing repetition of all kinds.

Documentantion

The documentation with available functions can be found here.

Goal

The goal of this project is to provide useful generic functions to use with Shared Libraries feature of Jenkins Pipelines. These functions are often common to many pipelines causing code replication. With this grouping of functions it is possible to eliminate duplications by making pipeline files simpler and leaner. See the example below. (Both produce the same result)

Normal Jenkinsfile compare

Jenkinsfile using this project compare

How to use

It is necessary to import as functions of this project into your Jenkins. To do this, go to Manage Jenkins » Configure System » Global Pipeline Libraries and fill the following information.

global-pipeline-config

In the default version option choose the version you want to use. This project has tags following SEMVER, you can use them to get specific versions. To always use the latest version, complete with master and the master branch will be used.

If you prefer it's not necessary check Load implicitly option. If you don't use this option it will be necessary import manually this script using the following instruction in top of the Jenkinsfile.

@Library('jenkins-dry-in-pipelines') _

If you want to use a version other than the configured version you can tell this in import.

@Library('[email protected]') _

More details can be found here.

The examples in the documentation assume that the option has been checked, so the imports are not displayed

Contributing

If you have some function in your pipelines that you believe is generic enough feel free to submit a Pull Request.

In order to understand the operation of the scripts it is possible to observe the code of this project and the Jenkins Shared Libraries documentation.

Meta

Robson Bittencourt - @rluizv - [email protected]

Distributed under the MIT license. See LICENSE for more information.

https://github.com/robsonbittencourt/jenkins-dry-in-pipelines

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].