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

Need docker id (hostname) variable for other plugins

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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

        Attachments

          Activity

          Hide
          falc0n24 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

          Show
          falc0n24 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
          Hide
          alex_murphy Alex Murphy added a comment -

          Hi Krzysztof Sokolowski,

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

          Thanks

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

            People

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

              Dates

              • Created:
                Updated:
                Resolved: