All Projects → hayderimran7 → Useful Jenkins Groovy Init Scripts

hayderimran7 / Useful Jenkins Groovy Init Scripts

A repo of useful groovy init scripts for working with jenkins hooks..

Programming Languages

java
68154 projects - #9 most used programming language
groovy
2714 projects

Projects that are alternatives of or similar to Useful Jenkins Groovy Init Scripts

cloud-s4-sdk-pipeline-docker
The Cloud SDK continuous delivery infrastructure makes heavy use of docker images. This are the docker sources of these images.
Stars: ✭ 13 (-91.98%)
Mutual labels:  jenkins, ci-cd
Devops Guide
DevOps Guide - Development to Production all configurations with basic notes to debug efficiently.
Stars: ✭ 4,119 (+2442.59%)
Mutual labels:  jenkins, ci-cd
pipeline-lib
Global shared library for Glia pipeline jobs
Stars: ✭ 68 (-58.02%)
Mutual labels:  jenkins, ci-cd
MCW-OSS-PaaS-and-DevOps
MCW OSS PaaS and DevOps
Stars: ✭ 49 (-69.75%)
Mutual labels:  jenkins, ci-cd
Fabric8
fabric8 is an open source microservices platform based on Docker, Kubernetes and Jenkins
Stars: ✭ 1,783 (+1000.62%)
Mutual labels:  jenkins, ci-cd
cheat-sheet-pdf
📜 A Cheat-Sheet Collection from the WWW
Stars: ✭ 728 (+349.38%)
Mutual labels:  jenkins, ci-cd
Ccmenu
CCMenu is a Mac application to monitor continuous integration servers.
Stars: ✭ 306 (+88.89%)
Mutual labels:  jenkins, ci-cd
cloud-s4-sdk-pipeline
The Cloud SDK pipeline uses the Cloud SDK continuous delivery server for building, checking, and deploying extension applications. Projects based on the SAP Cloud SDK archetype will automatically use this pipeline.
Stars: ✭ 65 (-59.88%)
Mutual labels:  jenkins, ci-cd
Spug
开源运维平台:面向中小型企业设计的轻量级无Agent的自动化运维平台,整合了主机管理、主机批量执行、主机在线终端、文件在线上传下载、应用发布部署、在线任务计划、配置中心、监控、报警等一系列功能。
Stars: ✭ 6,810 (+4103.7%)
Mutual labels:  jenkins, ci-cd
Jenkins Library
Jenkins shared library for Continuous Delivery pipelines.
Stars: ✭ 521 (+221.6%)
Mutual labels:  jenkins, ci-cd
Nevergreen
🐤 A build monitor with attitude
Stars: ✭ 170 (+4.94%)
Mutual labels:  jenkins, ci-cd
Fabric8 Platform
Generates the distribution of the fabric8 microservices platform
Stars: ✭ 105 (-35.19%)
Mutual labels:  jenkins, ci-cd
solutions-terraform-jenkins-gitops
Demonstrates the use of Jenkins and Terraform to manage Infrastructure as Code using GitOps practices
Stars: ✭ 49 (-69.75%)
Mutual labels:  jenkins, ci-cd
Pipeline
Pipeline is a package to build multi-staged concurrent workflows with a centralized logging output.
Stars: ✭ 433 (+167.28%)
Mutual labels:  jenkins, ci-cd
Quiz
Example real time quiz application with .NET Core, React, DDD, Event Sourcing, Docker and built-in infrastructure for CI/CD with k8s, jenkins and helm
Stars: ✭ 100 (-38.27%)
Mutual labels:  jenkins, ci-cd
Jenkins Pipeline Library
wcm.io Jenkins Pipeline Library for CI/CD
Stars: ✭ 134 (-17.28%)
Mutual labels:  jenkins, ci-cd
Jenkinsfile Runner Github Actions
Jenkins single-shot master GitHub Action POC
Stars: ✭ 146 (-9.88%)
Mutual labels:  jenkins
Helm Charts
Jenkins community Helm charts
Stars: ✭ 154 (-4.94%)
Mutual labels:  jenkins
Cdeasy
Continuous Delivery made Easy ;)
Stars: ✭ 143 (-11.73%)
Mutual labels:  jenkins
Demo Jenkins Config As Code
Demo of Jenkins Configuration-As-Code with Docker and Groovy Hook Scripts
Stars: ✭ 143 (-11.73%)
Mutual labels:  jenkins

Useful Jenkins groovy init Scripts

Jenkins allows adding groovy scripts for initialization, which means these scripts will run every time Jenkins starts.

How this works?

The jenkins server automatically looks for groovy.d folder under the home dir of where Jenkins run from e.g. /var/lib/jenkins/groovy.d or /root/.jenkins/groovy.d if running in a container, and any groovy script in folder get executed anytime jenkins starts.

Why use the scripts?

Its a pretty handy way of automating Jenkins installation; lets say you want your CI setup to be automated, like everytime you install your jenkins environment, it should be pre-configured with certain user accounts created, have LDAP configured automatically or some global properties set.

Groovy is an easy way of calling Jenkins base classes of Java without getting to know much of Java itself ;)

What scripts are in this repo?

I have scripts for :

  1. Creating user accounts.
  2. Creating global credentials (for ssh , username/password etc).
  3. Getting the API key of a user ( this is pretty useful because if you use (Jenkins Job Builder )[https://github.com/openstack-infra/jenkins-job-builder.git] for setting up your CI , for the credential .ini file , you will need the API key so why not get it from a groovy script :) )
  4. Setting the global security , either LDAP , or jenkins own database etc.
  5. Setting global authorization matrix for groups like anonymous, authenticated or any specific user.
  6. Get a credential ID of a global credential, again extremely useful when you use Jenkins Job BUilder and in git SCM, you need to specify (Credential ID of ssh key for git to use in cloning some private repos)[http://docs.openstack.org/infra/jenkins-job-builder/scm.html], this script will do it for you .

Cheers :)

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].