jenkinsci / gitlab-plugin

A Jenkins plugin for interfacing with GitLab
https://plugins.jenkins.io/gitlab-plugin/
GNU General Public License v2.0
1.44k stars 618 forks source link

Add JAVA_TOOLS_OPTIONS to environment of jenkins in docker-compose.yml #1517

Closed krisstern closed 1 year ago

krisstern commented 1 year ago

Description

In order to enable the IDE (in this case IntelliJ) debugger to be connected to the docker instance, we will need to add the environment variableJAVA_TOOLS_OPTIONS with some specific value to the docker-compose.yml file.

In our case for connecting to port 50000: "JAVA_TOOL_OPTIONS=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:50000"