Jenkins pipeline script exit status -1 for docker maven image
When using docker images I had the behavior that the command ended but the docker was still running, so I had no output.
You could try ton invoke the docker via shell.
sh 'docker pull myMaven3'
sh 'docker run --rm -v ${workdir}:/mvnBuildDir myMaven3 clean install'