[ 
https://issues.apache.org/jira/browse/YETUS-878?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16849120#comment-16849120
 ] 

Peter Somogyi commented on YETUS-878:
-------------------------------------

[~aw], apologies for the long delay. I tested on a simple hello world 
application using 0.10.0 yetus using the following command:
{noformat}
test-patch --basedir=yetus-tester --empty-patch --plugins=all 
--mvn-settings=/Users/peter.somogyi/.m2/my-settings.xml --docker{noformat}
When I used --docker for the command it was not able to locate the custom 
settings.xml file and gave this output.
{noformat}
============================================================================
============================================================================
                           Docker Image Creation
============================================================================
============================================================================


0.10.0: Pulling from apache/yetus
Digest: sha256:f036f41a09f9cec1c8dace73060d325569ca5d3620fdceebe3b6c19b226fe849
Status: Image is up to date for apache/yetus:0.10.0
Building run-specific image yetus/unknown:tp-23060

Total elapsed build time:   0m 20s

WARNING: JAVA_HOME=/Users/peter.somogyi/.sdkman/candidates/java/current does 
not exist. Dockermode: attempting to switch to another.
WARNING: Setting /usr/lib/jvm/java-8-openjdk-amd64 as the JAVA_HOME.
WARNING: Found both spotbugs and findbugs. Disabling findbugs.
Setting build tool to maven
WARNING: /Users/peter.somogyi/.m2/my-settings.xml not found. Ignoring.
Modes: Docker {noformat}
Removing the --docker parameter the build used the my-settings.xml file as 
expected.

> mvn-settings in docker mode is not working 
> -------------------------------------------
>
>                 Key: YETUS-878
>                 URL: https://issues.apache.org/jira/browse/YETUS-878
>             Project: Yetus
>          Issue Type: Bug
>    Affects Versions: 0.8.0
>            Reporter: Peter Somogyi
>            Priority: Major
>
> The --mvn-settings=<file> parameter does not work in docker mode.
> I used --mvn-settings="${WORKSPACE}/jenkins_m2_settings.xml and the file was 
> available on that path, however, in the logs I found a WARN stating that the 
> file is not found. 
> {noformat}
> 11:47:09 
> --mvn-settings=/data/jenkins/workspace/hbase-pre-commit/jenkins_m2_settings.xml
>  --project=hbase --plugins=all,-hadoopcheck,-xml --tests-filter=test4tests 
> --proclimit=10000 --dockermemlimit=20g --jenkins
> 11:59:13 WARNING: 
> /data/jenkins/workspace/hbase-pre-commit/jenkins_m2_settings.xml not found. 
> Ignoring.
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to