Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-71789

CloudBees Advisor does not support CasC ${variable} subssitution for email and cc configuration fields

XMLWordPrintable

      Reproduction Steps
      I created a simple bundle with the configuration of the Health advisor plugin in the Jenkins.yaml file like described in the documentation :

      jenkins:
        systemMessage: "Controller configured using CloudBees CasC"c
        numExecutors: 0
      advisor:
        acceptToS: true
        email: "${admin_mail}"  
        excludedComponents:
        - "AgentsSystemConfiguration"
        - "AgentsJVMProcessSystemMetricsContents"
        nagDisabled: false
      

      Also, we have a variables.yaml file with the variable admin_mail defined:

      variables:

          - team_name: Team Alpha
          - team_group: alpha
          - admin_mail: newmail@mail.com
      

      Then I deployed a controller using that casc-bundle and when it starts I can see in Manage Jenkins-> Configure Jenkins Health Advisor by CloudBees I can see that the variable is not substituted for its value, as shown in the screenshot:

      Additionally, if a `${variable}` is used in one of the CC: fields, it will not be correctly escaped when exported to yaml

            mikecirioli mike cirioli
            mikecirioli mike cirioli
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: