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

Option to expose container ports via port mapping

      For integration testing, it might be necessary for the tested system to be reachable by an external process (for example to receive asynchronous responses). Therefore it should be possible to map ports that are exposed by the container to a specific host port.

      At the moment I don't know of a specific need, but I'm quite sure, that this case will occur (we are hosting a centralized build environment for a couple of projects within our company)

          [JENKINS-29619] Option to expose container ports via port mapping

          The team I'm working with could make good use of this feature. I believe it would be better that such a feature to be compatible with the port-allocator plugin to avoid port clashes on the host.

          Our case is with projects where the integration tests start a web server which is exposed to the outside world. The web server port is, you guessed it, given by the port-allocator plugin. A distinct selenium server then uses the exposed web server to execute a test suite. When we use the Custom build environment plugin, it's impossible to reach the web server running within the build container.

          Jonathan Pelletier added a comment - The team I'm working with could make good use of this feature. I believe it would be better that such a feature to be compatible with the port-allocator plugin to avoid port clashes on the host. Our case is with projects where the integration tests start a web server which is exposed to the outside world. The web server port is, you guessed it, given by the port-allocator plugin. A distinct selenium server then uses the exposed web server to execute a test suite. When we use the Custom build environment plugin, it's impossible to reach the web server running within the build container.

            Unassigned Unassigned
            emicify Michael Süß
            Votes:
            9 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: