File tree Expand file tree Collapse file tree 5 files changed +7
-4
lines changed Expand file tree Collapse file tree 5 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ stage('Build') {
7979 // Use withEnv instead of setting env directly, as that is global!
8080 // See https://github.com/jenkinsci/pipeline-plugin/blob/master/TUTORIAL.md
8181 withEnv([" JAVA_HOME=${ javaHome} " , " PATH+JAVA=${ javaHome} /bin" ]) {
82- state[buildEnv. tag][' additionalOptions' ] = ' '
82+ state[buildEnv. tag][' additionalOptions' ] = ' -PmavenMirror=nexus-load-balancer-c4cf05fd92f43ef8.elb.us-east-1.amazonaws.com '
8383 if ( testJavaHome ) {
8484 state[buildEnv. tag][' additionalOptions' ] = state[buildEnv. tag][' additionalOptions' ] +
8585 " -Ptest.jdk.version=${ buildEnv.testJdkVersion} -Porg.gradle.java.installations.paths=${ javaHome} ,${ testJavaHome} "
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ pipeline {
3434 }
3535 dir('hibernate') {
3636 checkout scm
37- sh './gradlew publishToMavenLocal -DjakartaJpaVersion=3.1.0'
37+ sh './gradlew publishToMavenLocal -PmavenMirror=nexus-load-balancer-c4cf05fd92f43ef8.elb.us-east-1.amazonaws.com - DjakartaJpaVersion=3.1.0'
3838 script {
3939 env.HIBERNATE_VERSION = sh (
4040 script: "grep hibernateVersion gradle/version.properties|cut -d'=' -f2",
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ pipeline {
3535 }
3636 dir('hibernate') {
3737 checkout scm
38- sh './gradlew publishToMavenLocal -DjakartaJpaVersion=3.2.0-SNAPSHOT'
38+ sh './gradlew publishToMavenLocal -PmavenMirror=nexus-load-balancer-c4cf05fd92f43ef8.elb.us-east-1.amazonaws.com - DjakartaJpaVersion=3.2.0-SNAPSHOT'
3939 script {
4040 env.HIBERNATE_VERSION = sh (
4141 script: "grep hibernateVersion gradle/version.properties|cut -d'=' -f2",
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ pipeline {
2525 stage('Build') {
2626 steps {
2727 script {
28- sh './gradlew publishToMavenLocal --no-daemon'
28+ sh './gradlew publishToMavenLocal -PmavenMirror=nexus-load-balancer-c4cf05fd92f43ef8.elb.us-east-1.amazonaws.com - -no-daemon'
2929 script {
3030 env.HIBERNATE_VERSION = sh (
3131 script: "grep hibernateVersion gradle/version.properties|cut -d'=' -f2",
Original file line number Diff line number Diff line change @@ -25,6 +25,9 @@ plugins {
2525
2626dependencyResolutionManagement {
2727 repositories {
28+ if ( rootProject. hasProperty( " mavenMirror" ) ) {
29+ url( rootProject. property( " mavenMirror" ) )
30+ }
2831 mavenCentral()
2932 // Needed for the RC versions of Jakarta Persistence
3033 maven {
You can’t perform that action at this time.
0 commit comments