add maven settings file for jenkins user
This commit is a workaround for jenkins issue https://issues.jenkins-ci.org/browse/JENKINS-13637 This issue was uncovered when attempting to build the jenkins gearman-plugin using maven3. Change-Id: I5fdb20756f4ebca45b8e6eb2f114d561e1cca944 Reviewed-on: https://review.openstack.org/23022 Reviewed-by: Clark Boylan <clark.boylan@gmail.com> Approved: James E. Blair <corvus@inaugust.com> Reviewed-by: James E. Blair <corvus@inaugust.com> Tested-by: Jenkins
This commit is contained in:
parent
291cc5b16b
commit
c05f8a18b7
34
modules/jenkins/files/settings.xml
Normal file
34
modules/jenkins/files/settings.xml
Normal file
@ -0,0 +1,34 @@
|
||||
<settings>
|
||||
<pluginGroups>
|
||||
<pluginGroup>org.jenkins-ci.tools</pluginGroup>
|
||||
</pluginGroups>
|
||||
|
||||
<profiles>
|
||||
<!-- Give access to Jenkins plugins -->
|
||||
<profile>
|
||||
<id>jenkins</id>
|
||||
<activation>
|
||||
<activeByDefault>true</activeByDefault> <!-- change this to false, if you don't like to have it on per default -->
|
||||
</activation>
|
||||
<repositories>
|
||||
<repository>
|
||||
<id>repo.jenkins-ci.org</id>
|
||||
<url>http://repo.jenkins-ci.org/public/</url>
|
||||
</repository>
|
||||
</repositories>
|
||||
<pluginRepositories>
|
||||
<pluginRepository>
|
||||
<id>repo.jenkins-ci.org</id>
|
||||
<url>http://repo.jenkins-ci.org/public/</url>
|
||||
</pluginRepository>
|
||||
</pluginRepositories>
|
||||
</profile>
|
||||
</profiles>
|
||||
<mirrors>
|
||||
<mirror>
|
||||
<id>repo.jenkins-ci.org</id>
|
||||
<url>http://repo.jenkins-ci.org/public/</url>
|
||||
<mirrorOf>m.g.o-public</mirrorOf>
|
||||
</mirror>
|
||||
</mirrors>
|
||||
</settings>
|
@ -150,4 +150,22 @@ class jenkins::jenkinsuser(
|
||||
mode => '0755',
|
||||
require => File['/home/jenkins'],
|
||||
}
|
||||
|
||||
file { '/home/jenkins/.m2':
|
||||
ensure => directory,
|
||||
owner => 'jenkins',
|
||||
group => 'jenkins',
|
||||
mode => '0755',
|
||||
require => File['/home/jenkins'],
|
||||
}
|
||||
|
||||
file { '/home/jenkins/.m2/settings.xml':
|
||||
ensure => present,
|
||||
owner => 'jenkins',
|
||||
group => 'jenkins',
|
||||
mode => '0644',
|
||||
require => File['/home/jenkins/.m2'],
|
||||
source => 'puppet:///modules/jenkins/settings.xml',
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user