Use local nexus mirror when running on jenkins

Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
pull/2/head
Chris Mckay 6 years ago committed by GitHub
parent 8b883a15d3
commit 3b57c8913e
  1. 10
      build.gradle
  2. 2
      quickstart/docker-compose.yml
  3. 2
      quickstart/pantheon/Dockerfile

@ -79,9 +79,13 @@ allprojects {
targetCompatibility = '1.8'
repositories {
jcenter()
mavenCentral()
maven { url "https://consensys.bintray.com/pegasys-repo" }
if ("$System.env.JENKINS_URL" == 'https://jenkins.pegasys.tech/') {
maven { url "https://nexus.int.pegasys.tech/repository/jcenter/" }
} else {
jcenter()
mavenCentral()
maven { url "https://consensys.bintray.com/pegasys-repo" }
}
}
dependencies {

@ -4,6 +4,8 @@ services:
build:
context: ../
dockerfile: quickstart/pantheon/Dockerfile
args:
- JENKINS_URL=${JENKINS_URL:-null}
image: quickstart/pantheon:latest
entrypoint: /opt/pantheon/bootnode_start.sh --dev-mode
volumes:

@ -1,4 +1,6 @@
FROM openjdk:8-jdk as builder
ARG JENKINS_URL
ENV JENKINS_URL $JENKINS_URL
COPY . /tmp/pantheon
WORKDIR /tmp/pantheon
RUN ./gradlew installDist -x test

Loading…
Cancel
Save