Skip to content

A Jenkins server which you can destroy and spin up again in seconds, with the least amount of manual work.

License

Notifications You must be signed in to change notification settings

cinqict/jenkinsdev

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blog: jenkinsdev

This repository contains all needed code which is used in the blog on Jenkins Development Image.

jenkinsdev

Jenkinsdev is ment for developing your Jenkinsfile and Groovy scripts. My intention was to create a Jenkins server which I can destroy and spin up again in seconds, with the least amount of manual work.

Build and Run

Build image

docker pull jenkins/jenkins
docker build -t jenkinsdev .

Run Jenkins

docker run -p 8080:8080 jenkinsdev

Files explained

init.groovy.d

All files in init.groovy.d are executed during startup (Jenkins hook).

  • disable-security.groovy: disable need for manual login
  • initial_project.groovy: import git project.

Dockerfile

Extended from https://github.com/jenkinsci/docker/blob/master/README.md

More remarks inside the Dockerfile.

Jenkinsfile Example

Example of a Hello World Jenkinsfile. Note that the Jenkinsfile normally will be in your application repository.

About

A Jenkins server which you can destroy and spin up again in seconds, with the least amount of manual work.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •