infra-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karl Heinz Marbaise (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (INFRA-16351) Permission issues with Maven repo on H21 and H31
Date Sat, 14 Apr 2018 17:34:00 GMT

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

Karl Heinz Marbaise commented on INFRA-16351:
---------------------------------------------

If I correctly understand is your build configuration the problem. You are simply using things
like this:

$MAVEN_HOME/bin/mvn -B -V -fae -Del.log=WARN clean install

which means you run Maven under the user the jenkins server is running. This means Maven will
load the setting.xml from $HOME/.m2/settings.xml if there exist one...and tries to install
artifacts into the cache of the Jenkins user in $HOME/.m2/repository which is not correct.
The local cache should be in the workspace of the build which is not the case.

This issue can be solved if you configure Maven to use the local cache which is located in
the workspace of the build...like this:

-Dmaven.repo.local=$WORKSPACE/.repository ...

Another point might be if you really need to do "mvn install" ? From my point of view a "mvn
clean verify" should be sufficient.

Another solution might be to move to a pipeline job where you can use the configuration of
the jenkins via withMaven(...)...



> Permission issues with Maven repo on H21 and H31
> ------------------------------------------------
>
>                 Key: INFRA-16351
>                 URL: https://issues.apache.org/jira/browse/INFRA-16351
>             Project: Infrastructure
>          Issue Type: Task
>          Components: Jenkins
>            Reporter: Doroszlai, Attila
>            Assignee: Daniel Takamori
>            Priority: Major
>
> Hi,
> Jenkins has problem storing some dependencies for one of Ambari's modules on H21 and
H31 due to some permission issue.
> H21:
> [WARNING] Failed to write tracking file /home/jenkins/.m2/repository/compojure/compojure/1.1.3/_remote.repositories
> [WARNING] Failed to write tracking file /home/jenkins/.m2/repository/compojure/compojure/1.1.3/compojure-1.1.3.pom.lastUpdated
> [WARNING] Failed to write tracking file /home/jenkins/.m2/repository/clout/clout/1.0.1/_remote.repositories
> [WARNING] Failed to write tracking file /home/jenkins/.m2/repository/clout/clout/1.0.1/clout-1.0.1.pom.lastUpdated
> [WARNING] Failed to write tracking file /home/jenkins/.m2/repository/ring/ring-core/1.1.5/_remote.repositories
> [WARNING] Failed to write tracking file /home/jenkins/.m2/repository/ring/ring-core/1.1.5/ring-core-1.1.5.pom.lastUpdated
> [WARNING] Failed to write tracking file /home/jenkins/.m2/repository/hiccup/hiccup/0.3.6/_remote.repositories
> [WARNING] Failed to write tracking file /home/jenkins/.m2/repository/hiccup/hiccup/0.3.6/hiccup-0.3.6.pom.lastUpdated
> https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/1829/
> H31:
> [WARNING] Failed to write tracking file /home/jenkins/.m2/repository/org/apache/commons/commons-lang3/resolver-status.properties
> [WARNING] Failed to write tracking file /home/jenkins/.m2/repository/junit-addons/junit-addons/resolver-status.properties
> [WARNING] Failed to write tracking file /home/jenkins/.m2/repository/compojure/compojure/1.1.3/_remote.repositories
> [WARNING] Failed to write tracking file /home/jenkins/.m2/repository/compojure/compojure/1.1.3/compojure-1.1.3.pom.lastUpdated
> [WARNING] Failed to write tracking file /home/jenkins/.m2/repository/clout/clout/1.0.1/_remote.repositories
> [WARNING] Failed to write tracking file /home/jenkins/.m2/repository/clout/clout/1.0.1/clout-1.0.1.pom.lastUpdated
> [WARNING] Failed to write tracking file /home/jenkins/.m2/repository/ring/ring-core/1.1.5/_remote.repositories
> [WARNING] Failed to write tracking file /home/jenkins/.m2/repository/ring/ring-core/1.1.5/ring-core-1.1.5.pom.lastUpdated
> [WARNING] Failed to write tracking file /home/jenkins/.m2/repository/hiccup/hiccup/0.3.6/_remote.repositories
> [WARNING] Failed to write tracking file /home/jenkins/.m2/repository/hiccup/hiccup/0.3.6/hiccup-0.3.6.pom.lastUpdated
> [WARNING] Failed to write tracking file /home/jenkins/.m2/repository/org/apache/commons/commons-lang3/resolver-status.properties
> [WARNING] Failed to write tracking file /home/jenkins/.m2/repository/junit-addons/junit-addons/resolver-status.properties
> https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/1830/
> Could you please take a look?  Thanks.



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

Mime
View raw message