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

Regression if Jenkins-in-docker builds of Pipeline in 2.x

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: Blocker Blocker
    • docker-workflow-plugin
    • Jenkins 2.8
      maven 3.2.5 or 3.3.3
      open or Oracle JDK 1.8
      Docker 1.9.1
      CentOS 7 with 4.6.0-1.el7.elrepo.x86_64

      My Jenkins server is docker container from docker hub, which using docker server as a node (docker).
      I am trying to build my project with Jenkins and pipeline plugin in docker container. My Jenkinsfile looks like this:

      node('docker') {
          docker.image('build-node:1').inside {
              stage 'scm checkout'
              checkout scm
      
              stage 'maven build'
              try {
                  sh 'mvn clean | tee mvn.log'
              } catch (e) {
                  println "Maven failed : ${e}"
              }
          }
      }
      

      Output:

      [versioning] Running shell script
      + mvn clean
      + tee mvn.log
      [Pipeline] echo
      Maven failed : hudson.AbortException: script returned exit code -1
      

      mvn.log:

      [INFO] BUILD SUCCESS
      

            jglick Jesse Glick
            burtsevyg Yuriy Burtsev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: