Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-47116

Need docker id (hostname) variable for other plugins

      Hello.
      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?
      BR, Krzysztof

          [JENKINS-47116] Need docker id (hostname) variable for other plugins

          Hi.

          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.

          BR, Krzysztof

          Krzysztof Sokolowski added a comment - Hi. 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. BR, Krzysztof

          Alex Murphy added a comment -

          Hi falc0n24,

          Could you provide the details of your solution? I'm in a similar situation.

          Thanks

          Alex Murphy added a comment - Hi  falc0n24 , Could you provide the details of your solution? I'm in a similar situation. Thanks

            ndeloof Nicolas De Loof
            falc0n24 Krzysztof Sokolowski
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: