Status: Resolved (View Workflow)
Resolution: Not A Defect
Jenkins 2.73.1, newest versions of Docker plugin, and VncViewer
In general Docker Plugin is working great for me. I use it for launching e2e gui tests of complex telecommunication system. There is however, one improvement that could be done. When Docker is launching new container it assigns unique ID that is also host name of the system running in Docker. I would like to use this host name (Container ID) as parameter to another plugin (VncViewer). I have found that there is DOCKER_CONTAINER_ID env. variable present, but it doesn't have this short ID that is present e.g. also when I list running containers with docker ps. Is there already Jenkins variable for this shorter ID present? If not, would it be possible to add it?
Could you provide the details of your solution? I'm in a similar situation.
I have found clean solution to get all needed variables using existing NODE_NAME variable. After getting this I'm able to find docker ip that should be passed as parameter to Vncplugin.
I can provide details if someone will have similar problem.