referencing a variable from another stage requires dependsOn to be specified
To use variable output from another stage, you require a direct (1 level) of reference to that stage. Lets say you have created a 3 stage pipeline that looks like this
Stage A -> Stage B -> Stage C
Variable X is output in Stage A. Then Stage B would be able to reference Stage A.
Stage C will not be able to reference variable X.
Comments