I'm working with a Jenkins install I've inherited. This install has the CloudBees Docker Custom Build Environment Plugin installed. We think this plugin gives us a nifty Build inside a Docker container checkbox in our build configuration. When we configure jobs with this option, it looks like (based on Jenkins console output) Jenkins runs the build with the following command
Docker container 548ab230991a452af639deed5eccb304026105804b38194d98250583bd7bb83q started to host the build
[WIP-Tests] $ docker exec -t 548ab230991a452af639deed5eccb304026105804b38194d98250583bd7bb83q /bin/sh -xe /tmp/hudson7939624860798651072.sh
However -- we've found that this runs /bin/sh
with a very limited set of environmental variables -- including a $PATH
that doesn't include /bin
! So
How does the CloudBees Docker Custom Build Environment Plugin setup its
/bin/sh
environment. Is this user configurable via the UI (if so, where?)It looks like Jenkins is using
docker exec
-- which i think means that it must have (invisibly) setup a container with a long running process usingdocker run
. Doesn't anyone know how the CloudBees Docker Custom Build Environment Plugin plugin invokesdocker run
, and if this is user manageable?