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

Docker builds do not work with matrix project plugin

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • Ubuntu 14.04.2 LTS
      Linux 3.13.0-53-generic x86_64
      GNU bash, version 4.3.11(1)-release (x86_64-pc-linux-gnu)
      java version "1.7.0_79"

      When launching a build for a matrix project the job stays infinitely waiting on slaves and the docker plugin does not spin up any containers. I have published scripts which automatically generate a matrix build job if you wish to test this.

      https://github.com/samrocketman/jenkins-bootstrap-jervis

      1. export a GitHub API token.
      2. Provision a jenkins instance with ./jervis_bootstrap.sh
      3. When Jenkins is up press the build botton on "Generate Jenkins job from YAML" and generate the project "samrocketman/jervis"
      4. Visit "GitHub Organizations" tab and see the jervis-master job for a working builder.
      5. Configure the docker plugin and update the samrocketman/jervis-master Jenkins job to use a docker slave.

      You'll notice that it just stays infinitely in the queue because jobs never appear.

        1. my_jenkins_home.tar.gz
          6 kB
        2. credentials.xml
          0.9 kB
        3. config.xml
          3 kB
        4. config.xml
          17 kB

          [JENKINS-28661] Docker builds do not work with matrix project plugin

          Sam Gleske created issue -

          Sam Gleske added a comment -

          Sam Gleske added a comment - https://github.com/jenkinsci/docker-plugin/issues/242

          Duplicates GH issue

          Kanstantsin Shautsou added a comment - Duplicates GH issue
          Kanstantsin Shautsou made changes -
          Resolution New: Duplicate [ 3 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]

          Sam Gleske added a comment -

          One config.xml is the global config. The other config.xml is the job config. The credentials.xml is the credentials for the docker container: https://github.com/samrocketman/docker-jenkins-jervis

          Sam Gleske added a comment - One config.xml is the global config. The other config.xml is the job config. The credentials.xml is the credentials for the docker container: https://github.com/samrocketman/docker-jenkins-jervis
          Sam Gleske made changes -
          Attachment New: credentials.xml [ 29909 ]
          Attachment New: config.xml [ 29910 ]
          Attachment New: config.xml [ 29911 ]
          Sam Gleske made changes -
          Attachment New: my_jenkins_home.tar.gz [ 29912 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 163514 ] New: JNJira + In-Review [ 197223 ]

            integer Kanstantsin Shautsou
            sag47 Sam Gleske
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: