Этот вопрос уже задавался на Stack Overflow, и вы можете посмотреть ответы там:Как установить переменные среды в Jenkins?
Глобальные статические переменные среды можно задать для любой установки Jenkins в разделе «Управление Jenkins» > «Настройка системы» > «Глобальные свойства» > «Переменные среды».
Переменные среды могут быть установлены для каждого исполнителя -в настройках исполнителя. Там есть флажок для «переменных среды», и когда он установлен, открывается конфигурация переменных среды.
Переменные среды также могут быть установлены для каждого задания -:
/usr
не место для чего-либо "нестандартного":
человек выше:
/usr/src
Source files for different parts of the system, included with some packages for reference purposes. Don't work
here with your own projects, as files below /usr should be read-only except when installing software (optional).
/usr/src/linux
This was the traditional place for the kernel source. Some distributions put here the source for the default
kernel they ship. You should probably use another directory when building your own kernel.
справочный файл -иерархия:
/usr/
Vendor-supplied operating system resources. Usually read-only, but this is not required. Possibly shared between
multiple hosts. This directory should not be modified by the administrator, except when installing or removing
vendor-supplied packages.
/usr/include
полагался на /usr/src/linux
до:
/usr/include/linux
This contains information which may change from system release to system release and used to be a symbolic link
to /usr/src/linux/include/linux to get at operating-system-specific information.
Таким образом, исходные коды ядра относятся только к /usr/src
для ссылки, а не для изменения.
В Documentation/admin-guide/README.rst
показана опция O=
, позволяющая превратить сборку в дело -только для чтения в /usr/src/linux-VERSION
cd /usr/src/linux-4.X
make O=/home/name/build/kernel menuconfig
make O=/home/name/build/kernel
Таким же образом файл.config создается в каталоге /home.