-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MavenInDocker: Does not work when pom is in subfolder #49
Comments
@sklein94 thanks for reporting.
We could apply this to You can try it out in a replay. Just set the following
Here:
|
@schnatterer |
I had a problem building a maven project which was using the maven scm plugin. I was using the MavenInDocker-class to build the project.
The maven project is inside of a subfolder in the main project. So i was using the
dir
block in my Jenkinsfile. The problem is, that in this case only the current dir was mounted into the maven-docker-container which caused the build to fail because the.git
-folder in the parent folder is required when using the scm-plugin.To bypass this i executed the maven build in the base directory (to make sure everything is mounted inside docker) and passed the path to the pom.xml into the additionalArgs of the maven object.
Can you please make sure that the whole project is mounted into the maven-in-docker-container?
Maybe there is also another way, but i dont have an idea.
The text was updated successfully, but these errors were encountered: