-
Bug
-
Resolution: Incomplete
-
Blocker
-
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