Needs to set the variables locally when failing a job with variables #10698
Labels
kind/feature
Categorizes an issue or PR as a feature, i.e. new behavior
version:8.2.0-alpha1
Marks an issue as being completely or in parts released in 8.2.0-alpha1
version:8.2.0
Marks an issue as being completely or in parts released in 8.2.0
Is your feature request related to a problem? Please describe.
If a failling job has variables, then the variables needs to be set locally
client.newFailCommand(...).variables(...)
Describe the solution you'd like
Set the variables only locally when failing a job has variables.
Describe alternatives you've considered
If you want to variables globally, then you should
newSetVariablesCommand
, also it can set locally..newSetVariablesCommand(job.getElementInstanceKey()).variables(Map.of("key2", "value2")).local(true).send().join();
.newSetVariablesCommand(job.getElementInstanceKey()).variables(Map.of("key2", "value2").send().join();
Additional context
Related #9404
The text was updated successfully, but these errors were encountered: