You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2019/07/31 06:23:39 UTC

[maven] 01/01: try to display .mavenrc when available

This is an automated email from the ASF dual-hosted git repository.

hboutemy pushed a commit to branch MAVEN_OPTS
in repository https://gitbox.apache.org/repos/asf/maven.git

commit ddbab380b3353a7408077db10964c86e3c634bed
Author: Hervé Boutemy <hb...@apache.org>
AuthorDate: Wed Jul 31 08:14:59 2019 +0200

    try to display .mavenrc when available
---
 Jenkinsfile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Jenkinsfile b/Jenkinsfile
index 81254d9..0aad549 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -84,6 +84,10 @@ for (String os in runITsOses) {
             node(jenkinsEnv.nodeSelection(osLabel)) {
                 stage("${stageLabel}") {
                     echo "NODE_NAME = ${env.NODE_NAME}"
+                    if ( fileExists("${user.home}/.mavenrc") ) {
+                        echo "${user.home}/.mavenrc"
+                        readFile encoding: 'UTF-8', file: '${user.home}/.mavenrc'
+                    }
                     // on Windows, need a short path or we hit 256 character limit for paths
                     // using EXECUTOR_NUMBER guarantees that concurrent builds on same agent
                     // will not trample each other plus workaround for JENKINS-52657