You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While provisioning Ruby environments upon enterprise Jenkins agents, I noticed a hidden assumption within ASDF that causes the ASDF bash load process to fail.
Note two workarounds:
Jenkins pipelines probably still work, due to connecting directly to the Jenkins SSH account using known credentials, as opposed to sudo/su. But that breaks SSH troubleshooting from individual engineer accounts.
The user can override a default bash shell to target sh, then run sudo/su, then explicitly cd to the Jenkins home directory, and finally launch bash to load ASDF. But that's tedious.
Steps to Reproduce
chmod 0700 ~ in your normal Unix account.
Create a Jenkins Unix account.
Install ASDF in the Jenkins account.
Use sudo or su to change context to the Jenkins account.
Expected Behaviour
ASDF is available and working.
Actual Behaviour
The ASDF source line in the Jenkins account's .bashrc file terminates too early, citing cd permission errors.
The asdf command fails to register. asdf version reports that no such command is found.
Environment
Redacted
asdf plugins affected (if relevant)
No response
The text was updated successfully, but these errors were encountered:
I suspect asdf is triggering a dirty login shell as a consequence of asdf's assumptions about the authorization to cd into arbitrary /home/* directories, which is not true in all environments.
Describe the Bug
Hi,
While provisioning Ruby environments upon enterprise Jenkins agents, I noticed a hidden assumption within ASDF that causes the ASDF bash load process to fail.
Note two workarounds:
sh
, then runsudo
/su
, then explicitlycd
to the Jenkins home directory, and finally launchbash
to load ASDF. But that's tedious.Steps to Reproduce
chmod 0700 ~
in your normal Unix account.sudo
orsu
to change context to the Jenkins account.Expected Behaviour
ASDF is available and working.
Actual Behaviour
The ASDF source line in the Jenkins account's
.bashrc
file terminates too early, citingcd
permission errors.The
asdf
command fails to register.asdf version
reports that no such command is found.Environment
asdf plugins affected (if relevant)
No response
The text was updated successfully, but these errors were encountered: