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

envvars not resolved for 'wait for ports' field

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • None

      Trying to start a container providing the following:

      Docker command: Start Containers(s)
      Container ID(s): $DOCKER_CONTAINER_IDS
      Wait for ports: $DOCKER_CONTAINER_IDS 22

      error:

      [Docker] INFO: started container id df65196e50c8b48963d0f3cd8c1f3e548effe03d2b3b1ad4e36564985f6a1cf6
      [Docker] ERROR: command 'Start container(s)' failed: No such container $DOCKER_CONTAINER_IDS
      ERROR: No such container $DOCKER_CONTAINER_IDS
      ERROR: Publisher com.nirima.jenkins.plugins.docker.publisher.DockerPublisherControl aborted due to exception
      java.lang.NullPointerException
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:772)
      at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:736)
      at hudson.model.Build$BuildExecution.post2(Build.java:183)
      at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:685)
      at hudson.model.Run.execute(Run.java:1757)
      at hudson.plugins.project_inheritance.projects.InheritanceBuild.run(InheritanceBuild.java:96)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:234)

      NOTE: I am not sure how to break down DOCKER_CONATAINER_IDS into individual ids when used in wait for ports field. At the moment I only create one container so problem yet.

            vjuranek vjuranek
            aikomastboom Aiko Mastboom
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: