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') {
79
79
// Use withEnv instead of setting env directly, as that is global!
80
80
// See https://github.com/jenkinsci/pipeline-plugin/blob/master/TUTORIAL.md
81
81
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 '
83
83
if ( testJavaHome ) {
84
84
state[buildEnv. tag][' additionalOptions' ] = state[buildEnv. tag][' additionalOptions' ] +
85
85
" -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 {
34
34
}
35
35
dir('hibernate') {
36
36
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'
38
38
script {
39
39
env.HIBERNATE_VERSION = sh (
40
40
script: "grep hibernateVersion gradle/version.properties|cut -d'=' -f2",
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ pipeline {
35
35
}
36
36
dir('hibernate') {
37
37
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'
39
39
script {
40
40
env.HIBERNATE_VERSION = sh (
41
41
script: "grep hibernateVersion gradle/version.properties|cut -d'=' -f2",
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ pipeline {
25
25
stage('Build') {
26
26
steps {
27
27
script {
28
- sh './gradlew publishToMavenLocal --no-daemon'
28
+ sh './gradlew publishToMavenLocal -PmavenMirror=nexus-load-balancer-c4cf05fd92f43ef8.elb.us-east-1.amazonaws.com - -no-daemon'
29
29
script {
30
30
env.HIBERNATE_VERSION = sh (
31
31
script: "grep hibernateVersion gradle/version.properties|cut -d'=' -f2",
Original file line number Diff line number Diff line change @@ -25,6 +25,9 @@ plugins {
25
25
26
26
dependencyResolutionManagement {
27
27
repositories {
28
+ if ( rootProject. hasProperty( " mavenMirror" ) ) {
29
+ url( rootProject. property( " mavenMirror" ) )
30
+ }
28
31
mavenCentral()
29
32
// Needed for the RC versions of Jakarta Persistence
30
33
maven {
You can’t perform that action at this time.
0 commit comments