-
Bug
-
Resolution: Unresolved
-
Major
-
Jenkins 2.36, Pipeline Maven Plugin 0.4
I'm not able to use withMaven step inside docker container.
[Pipeline] withMaven $ docker exec ffff env printenv MAVEN_HOME $ docker exec ffff env printenv M2_HOME $ docker exec ffff env /bin/sh -c "which mvn" Using maven exec: /opt/apache-maven-3.3.9/bin/mvn Using global settings config with name MavenGlobal Replacing all maven server entries not found in credentials list is false [Pipeline] { [Pipeline] sh [test-XXX] Running shell script nohup: failed to run command `sh': No such file or directory [Pipeline] } [Pipeline] // withMaven
My Jenkinsfile pipeline:
node('docker') { stage('Checkout') { checkout scm } buildInDocker('linux') { stage('Maven') { withMaven(globalMavenSettingsConfig: '11111111-2222-3333-4444-555555555555') { sh 'mvn clean test' } } } }
It looks like PATH env gets overwritten.
- is related to
-
JENKINS-41339 Environment variables referencing other variables broken
-
- Reopened
-
-
JENKINS-47823 withMaven fails to inject Maven settings files with docker-pipeline 1.14
-
- Closed
-
-
JENKINS-47809 Docker container does not read maven settings.xml after updating
-
- Resolved
-
- relates to
-
JENKINS-41204 pipeline does not use docker environment
-
- Open
-
-
JENKINS-43590 docker.inside() breaks container environment.
-
- Open
-
-
JENKINS-48050 Replace Declarative Docker agent directive with new implementation
-
- In Progress
-
- links to
- mentioned in
-
Page Loading...
[JENKINS-40484] Unable to use withMaven() step inside docker container for old versions of Docker
Priority | Original: Minor [ 4 ] | New: Critical [ 2 ] |
Priority | Original: Critical [ 2 ] | New: Major [ 3 ] |
Attachment | New: image-2017-03-07-12-58-37-245.png [ 36322 ] |
Attachment | Original: image-2017-03-07-12-58-37-245.png [ 36322 ] |
Link | New: This issue relates to JENKINS-41204 [ JENKINS-41204 ] |
Attachment | New: support_2017-04-22_18.28.56.zip [ 37302 ] |
Assignee | Original: Alvaro Lobato [ alobato ] | New: Cyrille Le Clerc [ cleclerc ] |
Resolution | New: Cannot Reproduce [ 5 ] | |
Status | Original: Open [ 1 ] | New: Closed [ 6 ] |
Resolution | Original: Cannot Reproduce [ 5 ] | |
Status | Original: Closed [ 6 ] | New: Reopened [ 4 ] |
Summary | Original: Unable to use withMaven step inside docker container | New: Unable to use withMaven() step inside docker container for old versions of Docker |
Attachment | New: Capture.PNG [ 38674 ] |