-
Task
-
Resolution: Fixed
-
Minor
-
None
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
[JENKINS-71789] CloudBees Advisor does not support CasC ${variable} subssitution for email and cc configuration fields
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |
Status | Original: In Progress [ 3 ] | New: In Review [ 10005 ] |
Resolution | New: Fixed [ 1 ] | |
Status | Original: In Review [ 10005 ] | New: Resolved [ 5 ] |