Skip to content

Commit a6aeeed

Browse files
committed
fixing generate job to use Artifactory
1 parent 824786a commit a6aeeed

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

integration-tests/alias-test/Jenkinsfile.generate-child

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ pipeline {
5252
alwaysPull true
5353
reuseNode true
5454
image "phx.ocir.io/devweblogic/wdt/jenkins-alias-test-slave:${params.wls_version}"
55-
args "--group-add=oracle --group-add=${jenkins_group} -v /var/run/docker.sock:/var/run/docker.sock"
55+
args "--group-add=oracle --group-add=${jenkins_group} -v /var/run/docker.sock:/var/run/docker.sock -v${jenkins_home_directory}/.m2:${jenkins_home_directory}/.m2"
5656
}
5757
}
5858
steps {
@@ -62,13 +62,13 @@ pipeline {
6262
sh "sed -e \"s:__jenkins_home__:${jenkins_home_directory}:g\" \"\$OCI_CONFIG_FILE\" > ${jenkins_home_directory}/.oci/config"
6363
sh "cp \"\$OCI_SIGNING_KEY\" ${jenkins_home_directory}/.oci/oci-signing-key.pem"
6464
}
65-
withMaven(globalMavenSettingsConfig: 'wkt-maven-settings-xml', publisherStrategy: 'EXPLICIT') {
65+
configFileProvider([configFile(fileId: 'wkt-maven-settings-xml', targetLocation: "${jenkins_home_directory}/.m2/settings.xml")]) {
6666
// In 2 JDK images, JAVA_HOME is set to JDK8 in /u01/maven-jdk and JDK7 is in /u01/jdk.
6767
// In single JDK images, JAVA_HOME is set to /u01/jdk. That means that the
6868
// -Dwls_java_home will point to JDK7 for early WLS versions where it is required.
6969
// For all newer versions, it points to the JAVA_HOME location so it is a no-op.
7070
//
71-
sh 'pushd integration-tests/alias-test/generate && mvn -B install -Dalias-test-skip-generate=false -Dskip-wdt-install=true -Dalias_test_oci_profile=${oci_profile} -Dwls_java_home=/u01/jdk && popd'
71+
sh 'pushd integration-tests/alias-test/generate && mvn -s ${jenkins_home_directory}/.m2/settings.xml -B install -Dalias-test-skip-generate=false -Dskip-wdt-install=true -Dalias_test_oci_profile=${oci_profile} -Dwls_java_home=/u01/jdk && popd'
7272
}
7373
}
7474
}

0 commit comments

Comments
 (0)