Again, I'm new to jenkins. So maybe someone should validate, that it is the jenkins version and not a different presumption ;-)
Using jenkins 2.1.40 with opensuse leap 15.0:
- I'm able to define ENV variables in the global config
- a shell build step in order to echo the variables works fine
The resultung konsole output from "echo HTDOCS_DIR $HTDOCS_DIR ..." is:
+ echo HTDOCS_DIR /srv/www/htdocs/
HTDOCS_DIR /srv/www/htdocs/
+ echo JOOMLA4_DIR joomla4-dev
JOOMLA4_DIR joomla4-dev
Using jenkins 2.1.41 with opensuse leap thumbleweed:
- I'm able to define ENV variables in the global config
- a shell build step in order to echo the variables shows empty values
The resulting konsole output is:
+ echo HTDOCS_DIR
HTDOCS_DIR
+ echo JOOMLA4_DIR
JOOMLA4_DIR