When setting different workingDir on each container Template.
The «durable» script fail. It is referring to the first workingDir instead of the one for is container.
A simple example that fail.
Will fail, since the default workingDir of the jnlp slave ('/home/jenkins') doesn't match with «/someworkingdir» on the golang containerTemplate.
This same example, where the jnlp and golang workingDir match the same value, would work: