Closed mkrzywanski closed 3 years ago
Also noticed this, is there any other bug, which is similar?
Whenever I export my config and restart the server I get this for deployments:
com.azure.core.management.exception.ManagementException: Status code 400, "{"error":{"code":"InvalidTemplate","message":"Deployment template validation failed: 'One of template variables has empty or invalid content. Please see https://aka.ms/arm-template/#variables for usage details.'.","additionalInfo":[{"type":"TemplateViolation","info":{"lineNumber":0,"linePosition":0,"path":""}}]}}": Deployment template validation failed: 'One of template variables has empty or invalid content. Please see https://aka.ms/arm-template/#variables for usage details.
Created a new issue for above ^^
Version report
Jenkins and plugins versions report:
Reproduction steps
The problem is that, when using jenkins configuration as a code plugin, I want to set the
usageMode
Jenkins takes the localized description of the Mode. So for example if I want to configureusageMode
for given template to be used , the exported JaaC configuration looks like :this is for polish language. Later when I want to reload this configuration or create new Jenkins instance with this configuration it does not work and the default "NORMAL" mode is selected with localized description.
Results
Expected result:
I expect to be able to set the
usageMode
from the enum directly like "NORMAL", "EXCLUSIVE" and do not rely on localization.Actual result:
The autocofiguration with jenkins as a code plugin does not work with exported configuration wchich uses localized description for
usageMode
option.