buildit / Jenkins Pipeline Libraries
Useful Jenkins Pipeline Libraries to use for whatever.
Stars: ✭ 67
Programming Languages
groovy
2714 projects
Labels
Projects that are alternatives of or similar to Jenkins Pipeline Libraries
Jenkins Android Docker
🐳 Docker image for Jenkins with Android
Stars: ✭ 35 (-47.76%)
Mutual labels: jenkins
Dashboard
📺 Create your own team dashboard with custom widgets. Built with Next.js, React, styled-components and polished.
Stars: ✭ 1,007 (+1402.99%)
Mutual labels: jenkins
Chef Plugin
This is jenkins plugin to run chef-client on remote host
Stars: ✭ 38 (-43.28%)
Mutual labels: jenkins
Terraform Aws Jenkins Ha Agents
A terraform module for a highly available Jenkins deployment.
Stars: ✭ 41 (-38.81%)
Mutual labels: jenkins
Jenkins Vagrant
Vagrant Environment for a Jenkins Continuous Integration server
Stars: ✭ 34 (-49.25%)
Mutual labels: jenkins
Jenkins Workflow
contains handy groovy workflow-libs scripts
Stars: ✭ 41 (-38.81%)
Mutual labels: jenkins
Ansible Role Jenkins2
This Ansible role can be used to install and manage Jenkins 2.
Stars: ✭ 39 (-41.79%)
Mutual labels: jenkins
Aws Secrets Manager Credentials Provider Plugin
AWS Secrets Manager Credentials Provider for Jenkins
Stars: ✭ 45 (-32.84%)
Mutual labels: jenkins
Docker Jenkins Android
Jenkins docker image for Android development
Stars: ✭ 35 (-47.76%)
Mutual labels: jenkins
Jenkins Os
Groovy pipeline jobs that build and test Container Linux with Jenkins
Stars: ✭ 43 (-35.82%)
Mutual labels: jenkins
Localization Zh Cn Plugin
Chinese Localization for Jenkins
Stars: ✭ 65 (-2.99%)
Mutual labels: jenkins
Jenkinspipelineunit
Framework for unit testing Jenkins pipelines
Stars: ✭ 1,110 (+1556.72%)
Mutual labels: jenkins
Blog demos
CSDN博客专家程序员欣宸的github,这里有四百多篇原创文章的详细分类和汇总,以及对应的源码,内容涉及Java、Docker、Kubernetes、DevOPS等方面
Stars: ✭ 1,030 (+1437.31%)
Mutual labels: jenkins
Jenkins Pipeline Libraries
Useful Jenkins Pipeline Libraries to use for whatever.
##Prerequisites
- Jenkins 2.30+
- Pipeline Shared Libraries plugin
- Other plugins may be required for specific library calls (i.e. Docker)
##Usage
- Add global library 'buildit' pointing to github in Jenkins settings (Manage Jenkins > Configure System > Global Pipeline Libraries)
- Add
@Library('buildit')
into your pipeline definition (more details here)
##Examples ###Build and push tag
registry = '<SOME ECR REGISTRY>'
stage "Set Up"
node{
sh("if find lib/*; then rm lib/*; fi && curl -L https://github.com/buildit/jenkins-pipeline-libraries/archive/${env.PIPELINE_LIBS_VERSION}.zip -o lib.zip && echo 'A' | unzip -j lib.zip */lib/* -d lib")
shell = load "lib/shell.groovy"
pom = load "lib/pom.groovy"
ecr = load "lib/ecr.groovy"
tools = load "lib/tools.groovy"
}
node{
git(url: "https://github.com/dermotmburke/hello-boot.git")
def version = pom.version("pom.xml")
def artifactId = pom.artifactId("pom.xml")
stage "Build"
tools.configureMaven()
sh("mvn clean package")
docker.withRegistry(registry) {
ecr.authenticate("us-east-1")
def image = docker.build("${artifactId}:v${version}", '.')
stage "Docker Push"
image.push(version)
image.push("latest")
}
}
###Select tag
registry = '<SOME ECR REGISTRY>'
stage "Set Up"
node{
sh("if find lib/*; then rm lib/*; fi && curl -L https://github.com/buildit/jenkins-pipeline-libraries/archive/${env.PIPELINE_LIBS_VERSION}.zip -o lib.zip && echo 'A' | unzip -j lib.zip */lib/* -d lib")
ui = load "lib/ui.groovy"
ecr = load "lib/ecr.groovy"
template = load "lib/template.groovy"
}
node{
git(url: "https://github.com/dermotmburke/hello-boot.git")
def tag = input(message: "Select Tag", parameters: [ui.dropdown("tag", "Tag") {
ecr.imageTags("hello-boot", "us-east-1")
}], submitter: null)
def tmpFile = UUID.randomUUID().toString() + ".tmp"
def ymlData = template.transform(readFile("docker-compose.yml.template"), [tag :tag])
writeFile(file: tmpFile, text: ymlData)
sh("convox login console.convox.com --password <PASSWORD>")
sh("convox switch development")
//sh("convox apps create hello-boot")
sh("convox deploy --app hello-boot --file ${tmpFile}")
}
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].