This is an automated email from the ASF dual-hosted git repository.
sblackmon pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/streams.git
The following commit(s) were added to refs/heads/master by this push:
new e9fc2a8614 Jenkinsfile
e9fc2a8614 is described below
commit e9fc2a861463c76e18a7061a1057f0e7632ebc71
Author: Steve Blackmon <[email protected]>
AuthorDate: Mon Dec 18 13:24:29 2023 -0600
Jenkinsfile
---
Jenkinsfile | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/Jenkinsfile b/Jenkinsfile
index 37cfd08969..0ccbf89280 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -21,12 +21,11 @@ timestamps {
stage ('Streams - Build') {
- withEnv(["JAVA_HOME=${ tool 'JDK 17 (latest)' }",
"PATH=$PATH:${env.JAVA_HOME}/bin"]) {
-
- withMaven(jdk: 'JDK 17 (latest)', maven: 'Maven
3.9.3') {
- sh "mvn -P 'java-17' clean install
deploy"
- }
+ def JAVA_JDK_17=tool name: 'jdk_17_latest', type:
'hudson.model.JDK'
+ def MAVEN_3_LATEST=tool name: 'maven_3_latest', type:
'hudson.tasks.Maven$MavenInstallation'
+
withEnv(["Path+JDK=$JAVA_JDK_17/bin","Path+MAVEN=$MAVEN_3_LATEST/bin","JAVA_HOME=$JAVA_JDK_14"])
{
+ sh "mvn -P 'java-17' clean install deploy"
}
}