From bfe38345e661d60056c42d7cfa01db8557fe4442 Mon Sep 17 00:00:00 2001 From: jenilshah77 <78219407+jenilshah77@users.noreply.github.com> Date: Sun, 3 Nov 2024 23:29:17 -0500 Subject: [PATCH] Update Jenkinsfile-windows --- jenkins/Jenkinsfile-windows | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jenkins/Jenkinsfile-windows b/jenkins/Jenkinsfile-windows index ddf69ab..10cafbf 100644 --- a/jenkins/Jenkinsfile-windows +++ b/jenkins/Jenkinsfile-windows @@ -7,9 +7,9 @@ pipeline { } environment { - - PATH = "C:\\WINDOWS\\SYSTEM32" - } + // Set JAVA_HOME to point to JDK 17, and add its bin directory to the PATH + JAVA_HOME = 'C:\\Program Files\\Microsoft\\jdk-17.0.13.11-hotspot' + PATH = "${JAVA_HOME}\\bin;${env.PATH}" stages { stage('Build') {