詹金斯不显示从.bash_profile中设置的环境 [英] Jenkins not showing env set in from .bash_profile

查看:42
本文介绍了詹金斯不显示从.bash_profile中设置的环境的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过Jenkins进行构建,但是当通过Jenkins远程构建时,.bash_profile $ PATH的添加不会反映出来,但是在同一用户的终端中,我可以看到它们.

I'm trying to build via Jenkins but the .bash_profile $PATH additions aren't reflected when built remotely via Jenkins but in the terminal of the same user I can see them.

推荐答案

Bash源.bash_profile仅用于登录会话,而Jenkins进程不是.

Bash sources .bash_profile only for login sessions, which a Jenkins process is not.

将您的PATH更改放入.bashrc中.

Put your PATH changes in .bashrc, instead.

另请参阅有关启动文件的 bash手册.

See also the bash manual on startup files.

这篇关于詹金斯不显示从.bash_profile中设置的环境的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆