Update template variable using jython

#1

want to update template variable using jython before creating release

#2

Here is Jython API
You can get the VariableID to be changed from the RestCall
https://docs.xebialabs.com/xl-release/8.5.x/rest-docs/#find-template-release-by-id

obj = releaseApi.getVariable('Applications/Foldera281a4293f4c40/Releasebe3cfbfdf3384d38bc7a250e4235b98b/Variable72232b7cc65c4b')
obj.value = "newValue"
releaseApi.updateVariable(obj)

This should update your variable.

1 Like