I have a template that has input variables (showed on Create Release form) determined by a value provider. I want to trigger this template from another template, as a sub-release, by using the Core > Create Release task.
In this task, after selecting the template, the input variables appear. The problem is that for the ones that are value providers, I can't use a variable as input. I can only select a value from the dropdown directly in the Create Release task.
The workaround for the issue is using the script below to assign values to the create release task:
from com.xebialabs.xlrelease.domain.variables import StringVariable
task = taskApi.searchTasksByTitle('Application deployment', 'Deployment', getCurrentRelease().
application = StringVariable()
environment = StringVariable()
task.templateVariables = [application, environment]
Please sign in to leave a comment.