I’ve searched almost all internet to find a way, how to automatically configure pipeline, during initial setup of Jenkins from helm.
My idea is:
- Create configmap with configuration(jenkins plugins and so on), secrets which will be used by jenkins and also create pipeline from k8s configmap or create it somehow from yaml declaration inside helm/jenkins.yaml
- So far I have plugin management configured(inside jenkins-master-override.yaml file for helm configuration), secrets management configured(thanks to kubernetes credentials plugin), but I cannot automatically configure a pipeline.
- I have configuration of jenkins pipeline inside my SCM, but I would like to get a solution, how to configure this pipeline and credentials and git repository, somehow inside yaml - to be able to skip manual pipeline clicking and setting configuration - but so far I cannot find a way how to do this.
Do you know if there is a way how to achieve such configuration? Thanks in advance for any help here, maybe there is a way…