Sfoglia il codice sorgente

Values.yaml configurado para que guarde la url bien

Celestino Rey 10 mesi fa
parent
commit
5858f511d7
3 ha cambiato i file con 23 aggiunte e 5 eliminazioni
  1. 4 0
      README.md
  2. 6 0
      reset.sh
  3. 13 5
      values.yaml

+ 4 - 0
README.md

@@ -46,3 +46,7 @@ si aun así no funciona, probar también con default
 ## Ver contraseña de jenkins
 
     sh verAdminPass.sh 
+
+## Desinstalar jenkins
+
+    helm -n devops-tools uninstall jenkins

+ 6 - 0
reset.sh

@@ -0,0 +1,6 @@
+helm -n devops-tools uninstall jenkins
+oc delete -f pvc-jenkins.yaml 
+oc create -f pvc-jenkins.yaml 
+helm install jenkins -n devops-tools -f ./values.yaml jenkinsci/jenkins
+watch oc get all,pvc
+

+ 13 - 5
values.yaml

@@ -412,6 +412,7 @@ controller:
     - workflow-aggregator:608.v67378e9d3db_1
     - git:5.7.0
     - configuration-as-code:1995.v540b_50a_eb_0c1
+    - job-dsl:1.93
 
   # If set to false, Jenkins will download the minimum required version of all dependencies.
   # -- Download the minimum required version or latest version of all dependencies
@@ -510,7 +511,7 @@ controller:
   # etc. Best reference is https://<jenkins_url>/configuration-as-code/reference. The example below creates a welcome message:
   JCasC:
     # -- Enables default Jenkins configuration via configuration as code plugin
-    defaultConfig: true
+    defaultConfig: false
 
     # If true, the init container deletes all the plugin config files and Jenkins Config as Code overwrites any existing configuration
     # -- Whether Jenkins Config as Code should overwrite any existing configuration
@@ -519,10 +520,17 @@ controller:
     configUrls: []
     # - https://acme.org/jenkins.yaml
     # -- List of Jenkins Config as Code scripts
-    configScripts: {}
-    #  welcome-message: |
-    #    jenkins:
-    #      systemMessage: Welcome to our CI\CD server. This Jenkins is configured and managed 'as code'.
+    configScripts: 
+      welcome-message: |
+        jenkins:
+          systemMessage: Bienvenid@ a nuestro servidor CI\CD.
+
+      ubicacion: |
+        unclassified: 
+          location:
+            url: http://jenkins-okd.reymota.es
+            adminAddress: "celestino.rey@gmail.com"
+
 
     # Allows adding to the top-level security JCasC section. For legacy purposes, by default, the chart includes apiToken configurations
     # -- Jenkins Config as Code security-section