Issue Summary

      Docker task configured by UI incorrectly exported to Java Specs

      1. misses detach container flag and adds linkToDetachedContainers when it was not configured at UI
      2. incorrect Docker Pull Registry option when Custom registry is selected

      Steps to Reproduce

      1. Create Docker run task
      2. Check Detach checkbox and provide container name
      3. Create another Docker pull task
      4. Select the option "Custom registry" and provide the repository
      5. Export plan to Java Specs

      Expected Results

      new DockerRunContainerTask()
                      .containerName("CONTAINER_NAME")
                      .detachContainer(true)
      ...
      new DockerPullImageTask()
                      . customRegistryImage("registry.address:port/namespace/repository:tag")
      

      Actual Results

      new DockerRunContainerTask()
                      .containerName("CONTAINER_NAME")
                      .linkToDetachedContainers(true)
      ...
      new DockerPullImageTask()
                      . dockerHubImage("registry.address:port/namespace/repository:tag")
      

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

            [BAM-20561] Incorrect export of Docker task to Java Specs

            There are no comments yet on this issue.

              achystoprudov Alexey Chystoprudov
              achystoprudov Alexey Chystoprudov
              Affected customers:
              0 This affects my team
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: