Skip to content

Ready to deploy Jenkins Configuration as a Code

License

Notifications You must be signed in to change notification settings

jawaracloud/jenkins-casc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jenkins Configuration as Code

Ready to deploy Jenkins Configuration as a Code

Steps to deploy Jenkins Configuration as Code

  1. Clone the repository
  2. Run the following command to deploy Jenkins Configuration as Code
docker-compose up -d
  1. Access Jenkins at http://localhost:8080

How to add Jenkins plugins?

You can add Jenkins plugins by adding the plugin name in the Dockerfile. For example, to add the Blue Ocean plugin, add the following line in the Dockerfile

RUN jenkins-plugin-cli --plugins \
    "workflow-aggregator:latest workflow-multibranch:latest git:latest saferestart:latest kubernetes:latest configuration-as-code:latest matrix-auth:latest authorize-project:latest logstash:latest blueocean:latest"

How to configure Jenkins?

You can configure Jenkins by modifying the casc.yaml file. For example, to configure the number of executors, add the following lines in the casc.yaml file

jenkins:
  securityRealm:
    local:
      allowsSignup: false
      users:
       - id: ${ADMIN_USER}
         password: ${ADMIN_PASSWORD}
  authorizationStrategy:
    globalMatrix:
      permissions:
        - "Overall/Administer:admin"
        - "Overall/Read:authenticated"
  remotingSecurity:
    enabled: true
security:
  queueItemAuthenticator:
    authenticators:
    - global:
        strategy: triggeringUsersAuthorizationStrategy
unclassified:
  location:
    url: http://localhost:8080/

About

Ready to deploy Jenkins Configuration as a Code

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 100.0%