devspace icon indicating copy to clipboard operation
devspace copied to clipboard

How to implement pipeline devspace debugging with Jenkins

Open Feeeenng opened this issue 2 years ago • 2 comments

I want to use devspace to deploy in the Jenkins pipeline, and then provide an address for developers to use the local remote debugging environment. What are the steps required?

Feeeenng avatar Sep 27 '23 06:09 Feeeenng

@Feeeenng Hello! Were you able to find a solution for this?

In general, DevSpace can expose debugging tools via port-forwarding. I'm not super familiar with how debugging with Jenkins works, but perhaps that is an option.

lizardruss avatar Oct 02 '23 15:10 lizardruss

@lizardruss I'm glad you got back to me, I have an idea that might work. When we debug the application, use the command devspace dev app , at this time the environment is in the Jenkins pipeline.

Jenkins pipeline may provide a remote debugging vsocde address given by an operation and maintenance engineer, which contains the current debugging environment and code.

The development engineer starts to remotely debug the current environment until the debugging is completed.

At this time, the Jenkins pipeline also ends its life cycle, the vscode service also stops, and the environment is automatically destroyed.

This is just an idea of mine, I haven’t figured out how to achieve this goal yet

Feeeenng avatar Oct 08 '23 07:10 Feeeenng