Incorrect export of Docker task to Java Specs

XMLWordPrintable

    • 1
    • Severity 3 - Minor

      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

            Assignee:
            Alexey Chystoprudov
            Reporter:
            Alexey Chystoprudov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: