
(Or you can cancel it.) After you SSH into the build, the connection will remain open for two hours. The build VM will remain available for an SSH connection for 10 minutes after the build finishes running and then automatically shut down.
#Debug from mac cleaner adds windows
Consider reading the Hello World on Windows document to learn more. For example, To run powershell in your build you If you are using the Windows executor you will need to pass in the shell you want to use when using SSH. SSH to the running job (using the same SSH key that you use for GitHub or Bitbucket) to perform whatever troubleshooting you need to. The details are displayed again in the ‘Wait for SSH’ section at the end of the job. To see the connection details, expand the ‘Enable SSH’ section in the job output where you will see the SSH command needed to connect. If needed, you can access the running jobs via the legacy jobs view. When you rerun a job with SSH, a new pipeline is not triggered a job is just rerun. Note: The Rerun job with SSH feature is intended for debugging purposes therefore, these jobs will not be reflected in your pipelines. To start a job with SSH enabled, select the ‘Rerun job with SSH’ option from the ‘Rerun Workflow’ dropdown menu. StepsĮnsure that you have added an SSH key to your GitHub or Bitbucket account. Please note that a default CircleCI pipeline executes steps in a non-interactive shell and hence, there is the possibility that running steps using an interactive login may succeed, while failing in non-interactive mode. Either way, you will not be initiating a clean run (you may wish to execute pwd or ls to ensure that you are in the correct directory). You may be running the command on top of the directory where the command failed the first time, or you may be running the command from the directory one level up from where the command failed (e.g. When you log in with SSH, you are running an interactive login shell. Read our blog post on debugging CI/CD pipelines with SSH.

CircleCI 2.0 gives you the option to access all jobs via SSH. Often the best way to troubleshoot problems is to SSH into a job and inspect things like log files, running processes, and directory paths. Debugging: “permission denied (publickey)”.

#Debug from mac cleaner adds how to
This document describes how to access a build container using SSH on CircleCI 2.0 in the following sections:
