I've prepared a test SSCCE setup to verify the JS setVariable functionality.
test_set_variables.zip
test_grandparent_job is the entry point. It requires no startup paremeters. test_print_file has a destination specified to a folder on my local filesystem, you will most likely have to change it to write the result file. The whole test, however, is based on "Write to log", the file is only another output method.
No variables set in test_tr/Script are visible in parent jobs. I am unable to make it work as I understand it should.
What am I doing wrong? How is setVariable supposed to work?
test_set_variables.zip
test_grandparent_job is the entry point. It requires no startup paremeters. test_print_file has a destination specified to a folder on my local filesystem, you will most likely have to change it to write the result file. The whole test, however, is based on "Write to log", the file is only another output method.
No variables set in test_tr/Script are visible in parent jobs. I am unable to make it work as I understand it should.
What am I doing wrong? How is setVariable supposed to work?