Docker workflow plugin and env vars

5 views
Skip to first unread message

Sascha Schwarz

unread,
Aug 29, 2018, 4:15:48 AM8/29/18
to Jenkins Users
Hi all.
Env vars being set to the same value in global Jenkins config and
docker host are being removed from the environment of started containers.

This just struck me with proxy settings.

E.g. set
http_proxy=http://foo.example.com

in global Jenkins config and on a node running docker (envvartesthost below).

Now with following pipeline assert that http_proxy is not showing up.

pipeline {
    agent
{
        docker
{
            image
"busybox"
            label
"envvartesthost"
       
}
   
}
    stages
{
       stage
("envvartest") {
           steps
{
               sh
"env"
           
}
       
}
   
}
}  

Does anyone know the ratio behind this?

TIA
Sascha
Reply all
Reply to author
Forward
0 new messages