-
Notifications
You must be signed in to change notification settings - Fork 173
Closed as not planned
Description
@Test
public void test() {
Jinjava jinjava = new Jinjava();
Map<String, Object> context = new HashMap<>();
Map<String, Object> pipelineRun = new HashMap<>();
Map<String, Object> parameters = new HashMap<>();
parameters.put("product-name", "aaaa");
pipelineRun.put("parameters", parameters);
context.put("pipelineRun", pipelineRun);
String template = "x-{{pipelineRun.parameters.product-name}}.zip";
String renderedTemplate = jinjava.render(template, context);
System.out.println(renderedTemplate);
}
expect result: x-aaaa.zip,but get x-0.zip, why
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels