CircleCI non-interactive shell VS interactive SSH sessions


By default, CircleCI runs your steps' commands in non-interactive shell sessions.

However, please note that when re-running your job with SSH, you will be in an interactive shell session.

Because of this difference, when in an SSH session, certain Bash startup files may be loaded (e.g., ~/.bashrc file).
This will depend on your job's execution environment (e.g., the Docker image for your Docker executor job).

Please note that this can mean a different debugging experience (e.g., a tool can be found during the SSH session but not during the CircleCI build).

Additional Resources

Was this article helpful?
1 out of 1 found this helpful



Article is closed for comments.