Skip to content

Commit

Permalink
adding settings.xml for jenkins to use the default nexus creds for de…
Browse files Browse the repository at this point in the history
…ploying
  • Loading branch information
Benjamin Stein committed Nov 22, 2017
1 parent ad0405b commit e4934ef
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 0 deletions.
1 change: 1 addition & 0 deletions jenkins/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
FROM liatrio/jenkins-alpine
COPY jobs /usr/share/jenkins/ref/jobs/
COPY resources/maven-settings.xml /usr/share/jenkins/ref/org.jenkinsci.plugins.configfiles.GlobalConfigFiles.xml
65 changes: 65 additions & 0 deletions jenkins/resources/maven-settings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
<?xml version='1.0' encoding='UTF-8'?>
<org.jenkinsci.plugins.configfiles.GlobalConfigFiles plugin="[email protected]">
<configs class="sorted-set">
<comparator class="org.jenkinsci.plugins.configfiles.GlobalConfigFiles$1"/>
<org.jenkinsci.plugins.configfiles.xml.XmlConfig>
<id>nexus</id>
<name>nexus</name>
<comment></comment>
<content>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;settings xsi:schemaLocation=&quot;http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd&quot; xmlns=&quot;http://maven.apache.org/SETTINGS/1.1.0&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;&gt;
&lt;mirrors&gt;
&lt;mirror&gt;
&lt;mirrorOf&gt;central&lt;/mirrorOf&gt;
&lt;url&gt;http://nexus:8081/nexus/content/repositories/central/&lt;/url&gt;
&lt;id&gt;releases&lt;/id&gt;
&lt;/mirror&gt;
&lt;/mirrors&gt;
&lt;servers&gt;
&lt;server&gt;
&lt;id&gt;releases&lt;/id&gt;
&lt;username&gt;nexus&lt;/username&gt;
&lt;password&gt;admin123&lt;/password&gt;
&lt;/server&gt;
&lt;server&gt;
&lt;id&gt;snapshots&lt;/id&gt;
&lt;username&gt;nexus&lt;/username&gt;
&lt;password&gt;admin123&lt;/password&gt;
&lt;/server&gt;
&lt;server&gt;
&lt;id&gt;deployment&lt;/id&gt;
&lt;username&gt;admin&lt;/username&gt;
&lt;password&gt;admin123&lt;/password&gt;
&lt;/server&gt;
&lt;/servers&gt;
&lt;/settings&gt;</content>
<providerId>org.jenkinsci.plugins.configfiles.xml.XmlConfig</providerId>
</org.jenkinsci.plugins.configfiles.xml.XmlConfig>
<org.jenkinsci.plugins.configfiles.xml.XmlConfig>
<id>nexus</id>
<name>nexus</name>
<comment></comment>
<content>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;settings xsi:schemaLocation=&quot;http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd&quot; xmlns=&quot;http://maven.apache.org/SETTINGS/1.1.0&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;&gt;
&lt;servers&gt;
&lt;server&gt;
&lt;id&gt;releases&lt;/id&gt;
&lt;username&gt;admin&lt;/username&gt;
&lt;password&gt;admin123&lt;/password&gt;
&lt;/server&gt;
&lt;server&gt;
&lt;id&gt;snapshots&lt;/id&gt;
&lt;username&gt;admin&lt;/username&gt;
&lt;password&gt;admin123&lt;/password&gt;
&lt;/server&gt;
&lt;server&gt;
&lt;id&gt;deployment&lt;/id&gt;
&lt;username&gt;admin&lt;/username&gt;
&lt;password&gt;admin123&lt;/password&gt;
&lt;/server&gt;
&lt;/servers&gt;
&lt;/settings&gt;</content>
<providerId>org.jenkinsci.plugins.configfiles.xml.XmlConfig</providerId>
</org.jenkinsci.plugins.configfiles.xml.XmlConfig>
</configs>
</org.jenkinsci.plugins.configfiles.GlobalConfigFiles>

0 comments on commit e4934ef

Please sign in to comment.