From 118fc0a27ff5ea332ae5f765981b0a55bd5820d5 Mon Sep 17 00:00:00 2001 From: Nate McMaster Date: Fri, 24 Aug 2018 10:02:53 -0700 Subject: [PATCH] Fail CI builds if the JDK cannot be found, warn for local builds, and add a flag to completely skip building the Java client --- build/buildpipeline/windows-es.groovy | 2 +- build/buildpipeline/windows.groovy | 2 +- build/repo.targets | 22 +++++++++++++++------- 3 files changed, 17 insertions(+), 9 deletions(-) diff --git a/build/buildpipeline/windows-es.groovy b/build/buildpipeline/windows-es.groovy index 9fccc2fc0f..f1f0c1043d 100644 --- a/build/buildpipeline/windows-es.groovy +++ b/build/buildpipeline/windows-es.groovy @@ -9,6 +9,6 @@ simpleNode('Windows.10.Amd64.ClientRS4.ES.Open') { stage ('Build') { def logFolder = getLogFolder() def environment = "set ASPNETCORE_TEST_LOG_DIR=${WORKSPACE}\\${logFolder}" - bat "${environment}&.\\run.cmd -CI default-build" + bat "${environment}&.\\build.cmd -ci /p:SkipJavaClient=true" } } diff --git a/build/buildpipeline/windows.groovy b/build/buildpipeline/windows.groovy index c1fcbd36e0..3235d6530f 100644 --- a/build/buildpipeline/windows.groovy +++ b/build/buildpipeline/windows.groovy @@ -9,6 +9,6 @@ simpleNode('Windows.10.Amd64.EnterpriseRS3.ASPNET.Open') { stage ('Build') { def logFolder = getLogFolder() def environment = "set ASPNETCORE_TEST_LOG_DIR=${WORKSPACE}\\${logFolder}" - bat "${environment}&.\\run.cmd -CI default-build" + bat "${environment}&.\\build.cmd -ci /p:SkipJavaClient=true" } } diff --git a/build/repo.targets b/build/repo.targets index 075b60d384..85e3b13e5a 100644 --- a/build/repo.targets +++ b/build/repo.targets @@ -23,6 +23,16 @@ $(GradleOptions) -Dorg.gradle.daemon=false + + + + + + + + $(RestoreDependsOn);RestoreNpm @@ -48,7 +58,7 @@ - + @@ -80,8 +90,8 @@ - - + + JavaJar $(JavaClientVersion) @@ -92,9 +102,7 @@ $(JavaClientVersion) ship - - @@ -110,7 +118,7 @@ - + @@ -135,7 +143,7 @@ - +