File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
integration-tests/alias-test Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ pipeline {
52
52
alwaysPull true
53
53
reuseNode true
54
54
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 "
56
56
}
57
57
}
58
58
steps {
@@ -62,13 +62,13 @@ pipeline {
62
62
sh "sed -e \"s:__jenkins_home__:${jenkins_home_directory}:g\" \"\$OCI_CONFIG_FILE\" > ${jenkins_home_directory}/.oci/config"
63
63
sh "cp \"\$OCI_SIGNING_KEY\" ${jenkins_home_directory}/.oci/oci-signing-key.pem"
64
64
}
65
- withMaven(globalMavenSettingsConfig : 'wkt-maven-settings-xml', publisherStrategy: 'EXPLICIT' ) {
65
+ configFileProvider([configFile(fileId : 'wkt-maven-settings-xml', targetLocation: "${jenkins_home_directory}/.m2/settings.xml")] ) {
66
66
// In 2 JDK images, JAVA_HOME is set to JDK8 in /u01/maven-jdk and JDK7 is in /u01/jdk.
67
67
// In single JDK images, JAVA_HOME is set to /u01/jdk. That means that the
68
68
// -Dwls_java_home will point to JDK7 for early WLS versions where it is required.
69
69
// For all newer versions, it points to the JAVA_HOME location so it is a no-op.
70
70
//
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'
72
72
}
73
73
}
74
74
}
You can’t perform that action at this time.
0 commit comments