Pass variable from one Jenkins stage to others in sh
You can output the variables to same file in stage, then read back and assign to env at the beginning of each stage as following:
You can output the variables to same file in stage, then read back and assign to env at the beginning of each stage as following: