jenkins Plugin

This plugin installs jenkins in an existing Kubernetes cluster using the Helm chart.

Usage

NOTICE:

Create the data directory manually:

  1. mkdir -p ~/data/jenkins-volumes/
  2. chown -R 1000:1000 ~/data/jenkins-volumes/
  1. tools:
  2. # name of the tool
  3. - name: jenkins
  4. # id of the tool instance
  5. instanceID: default
  6. # format: name.instanceID; If specified, dtm will make sure the dependency is applied first before handling this tool.
  7. dependsOn: []
  8. # options for the plugin
  9. options:
  10. # need to create the namespace or not, default: false
  11. create_namespace: false
  12. # Helm repo information
  13. repo:
  14. # name of the Helm repo
  15. name: jenkins
  16. # url of the Helm repo
  17. url: https://charts.jenkins.io
  18. # Helm chart information
  19. chart:
  20. # name of the chart
  21. chart_name: jenkins/jenkins
  22. # release name of the chart
  23. release_name: dev
  24. # k8s namespace where jenkins will be installed
  25. namespace: jenkins
  26. # whether to wait for the release to be deployed or not
  27. wait: true
  28. # the time to wait for any individual Kubernetes operation (like Jobs for hooks). This defaults to 5m0s
  29. timeout: 5m
  30. # whether to perform a CRD upgrade during installation
  31. upgradeCRDs: true
  32. # custom configuration (Optional). You can refer to [Jenkins values.yaml](https://github.com/jenkinsci/helm-charts/blob/main/charts/jenkins/values.yaml)
  33. values_yaml: |
  34. persistence:
  35. storageClass: jenkins-pv
  36. serviceAccount:
  37. create: false
  38. name: jenkins

Currently, all the parameters in the example above are mandatory.