Hi, all!
I'm just curious as to why EXECUTOR_NUMBER is unavailable within a workflow script. Is it because it can change between steps? Or is it that until a node is allocated, there's no way to know it? Some other reason? Since it's documented as unavailable, I assume there is a reason behind the decision.
Here's the use case that motivates my question. I have a build where I'm building in a Docker container that contains my build toolchain (essentially Java 7 + sbt-extras). So that I don't have to wait to download the appropriate sbt and dependencies on every build, I'm mounting my sbt and ivy caches as volumes in a data container that persists across builds. In order to avoid contention between concurrent builds modifying these caches, I wanted to have a separate data container per executor on the node. But there's no way to know what executor I'm running on without EXECUTOR_NUMBER. Can anybody suggest a different way to do this?
Thanks,
Greg