Skip to content

๐Ÿ— Jenkins showroom to demonstrate some cools features like Configuration as Code, JobDSL, YML pipeline, Jenkins CLI

License

Notifications You must be signed in to change notification settings

jeremychauvet/showroom-jenkins

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

90 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Jenkins showroom

This repository is a sandbox to test new Jenkins concepts and plugins.

ghost preview

Sub-projects

  • Configuration as code : AKA "Jenkins as code": manage your Jenkins from configuration to jobs only with code.
  • Job DSL : Manage Job configuration with code and "configuration as code" plugin.
  • CLI : Manage Jenkins in headless with Jenkins CLI.
  • YAML pipelines : write pipelines in YAML.

Installation

At project root, launch the following command : make start

This will :

  1. Download official Jenkins image set in Makefile (JENKINS_VERSION)
  2. Add plugins you choose to install.
  3. Launch container and map volume and ports.

How to

Login

  • User : admin
  • password : 1234

Add plugins

In Dockerfile, we use Cloudbee recommanded way to install plugin : install-plugins.sh

You can add plugin id you want after the plugins already given. Then, launch command make build to build image and get and output like this :

jchauvet@macbookpro jenkins-showroom % make build
docker-compose build --build-arg JENKINS_VERSION=2.241
WARNING: The JENKINS_VERSION variable is not set. Defaulting to a blank string.
Building jenkins
Step 1/3 : ARG JENKINS_VERSION
Step 2/3 : FROM jenkins/jenkins:${JENKINS_VERSION}-slim
2.241-slim: Pulling from jenkins/jenkins
8559a31e96f4: Pull complete
[...]
f68157dad2ff: Pull complete
Digest: sha256:6703e16ae762c51b6d132844fdf08a87e80967c17de8b592a5ee69a429d5804c
Status: Downloaded newer image for jenkins/jenkins:2.241-slim
 ---> 7e8fd2b0fe5e
Step 3/3 : RUN install-plugins.sh dark-theme configuration-as-code
 ---> Running in e0f5131b530e
Creating initial locks...
Analyzing war /usr/share/jenkins/jenkins.war...
Registering preinstalled plugins...
Downloading plugins...
Downloading plugin: dark-theme from https://updates.jenkins.io/download/plugins/dark-theme/latest/dark-theme.hpi
Downloading plugin: configuration-as-code from https://updates.jenkins.io/download/plugins/configuration-as-code/latest/configuration-as-code.hpi
 > dark-theme depends on theme-manager:0.1
Downloading plugin: theme-manager from https://updates.jenkins.io/download/plugins/theme-manager/latest/theme-manager.hpi
 > configuration-as-code depends on snakeyaml-api:1.26.1
Downloading plugin: snakeyaml-api from https://updates.jenkins.io/download/plugins/snakeyaml-api/latest/snakeyaml-api.hpi

WAR bundled plugins:


Installed plugins:
configuration-as-code:1.41
dark-theme:0.0.3
snakeyaml-api:1.26.4
theme-manager:0.1
Cleaning up locks
Removing intermediate container e0f5131b530e
 ---> 5864c87171fa

Successfully built 5864c87171fa
Successfully tagged jenkins:showroom

Upgrade Jenkins version

In Makefile, please change JENKINS_VERSION value to the desired.

Roadmap

Roadmap can be found on Github : https://github.com/jeremychauvet/jenkins-showroom/projects/1

Usefull links

About

๐Ÿ— Jenkins showroom to demonstrate some cools features like Configuration as Code, JobDSL, YML pipeline, Jenkins CLI

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks