Skip to content
This repository has been archived by the owner on Jan 4, 2023. It is now read-only.

Commit

Permalink
use a local nexus repo
Browse files Browse the repository at this point in the history
  • Loading branch information
tfennelly committed Sep 23, 2016
1 parent 800649a commit 83f41b9
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,21 @@ node {
// Expose the port on which the ATH Jenkins instance runs (12345), allowing the
// Firefox browser (running in the selenium container) to make requests back
// in etc.
athImg.inside("--expose=12345") {
athImg.inside("--expose=12345 -v /home/tfennelly/.m2:/home/bouser/.m2") {
withEnv(['GIT_COMMITTER_EMAIL=me@hatescake.com', 'GIT_COMMITTER_NAME=Hates', 'GIT_AUTHOR_NAME=Cake', 'GIT_AUTHOR_EMAIL=hates@cake.com']) {
try {
sh "echo 'writing settings.xml'"
// Use the m2 repo cache from the host by creating a settings.xml.
sh ("echo \"<settings>" +
" <mirrors>\n" +
" <mirror>\n" +
" <id>localnexus</id>\n" +
" <url>http://192.168.1.3:8081/repository/maven-public/</url>\n" +
" <mirrorOf>*</mirrorOf>\n" +
" </mirror>\n" +
" </mirrors>" +
" <servers><server><id>localnexus</id><username>admin</username><password>admin123</password></server></servers>" +
"</settings>\" > /home/bouser/.m2/settings.xml");
// sh "echo 'writing settings.xml'"
// // Use the m2 repo cache from the host by creating a settings.xml.
// sh ("echo \"<settings>" +
// " <mirrors>\n" +
// " <mirror>\n" +
// " <id>localnexus</id>\n" +
// " <url>http://192.168.1.3:8081/repository/maven-public/</url>\n" +
// " <mirrorOf>*</mirrorOf>\n" +
// " </mirror>\n" +
// " </mirrors>" +
// " <servers><server><id>localnexus</id><username>admin</username><password>admin123</password></server></servers>" +
// "</settings>\" > /home/bouser/.m2/settings.xml");

sh "echo 'Starting build stage'"
// Build blueocean and the ATH
Expand Down

0 comments on commit 83f41b9

Please sign in to comment.