Jenkins pipeline: in stage1, read number from file, in stage2, **within** node name, use that number
问题 To continue this: Jenkins pipeline stages - passing whole file I'm now stuck with having to set a number as part of a node name, where this number is contained within a file on another node. E.g, if a properties file contains the number 6, I have to run a job on a node named DEV-SME-6. Is there a way for me to: in stage1, read the number from a file on the master node, something like this: Env_number = readFile 'file_containing_an_integer_between_2_and_7.txt' then in stage2, within the node