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

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/363c1b94-b729-42b0-be32-9bb6b65a0813%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to