Login Debugging
About 242 wordsLess than 1 minute
When is Login Debugging Needed?
User-defined scripts execute inside a Docker container. Due to differences between local and CI environments, issues may occur in CI builds that don't appear locally. In such cases, you can use the Login Debugging option on the logs page to access the pipeline's Docker container for debugging.
How to Use?
Before each pipeline execution, a Docker container is started to run user scripts. By default, this container is destroyed after the build completes. Therefore, you can login to the Docker container for debugging while the pipeline build environment exists.
Login debugging is available in two scenarios:
- During the build process, you can login to debug.
- On the logs page, check the
Debugoption next to theRebuildbutton, then clickRebuild. For newly triggered builds, the build environment is retained for 5 minutes after completion. The system periodically checks if any user has logged into theDocker containerfor debugging - if not, the environment is automatically destroyed; if yes, it is kept longer. The build environment is retained for a maximum of 1 hour.
Debugging Tips
When clicking Rebuild, you can select which Pipeline, Stage, or Job to execute, helping developers reproduce the problem environment more easily.