From 9da3e36138dd24377fbb0b4022d891b3baf07b84 Mon Sep 17 00:00:00 2001 From: Jian Chen Date: Wed, 17 Jan 2024 20:20:42 -0500 Subject: [PATCH] Fix buildJava from Zip-Nuget-Java-Nodejs Packaging Pipeline (#19187) ### Description ### Motivation and Context --- .../c-api-noopenmp-packaging-pipelines.yml | 2 ++ .../stages/nuget-linux-cuda-packaging-stage.yml | 10 ++++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/tools/ci_build/github/azure-pipelines/c-api-noopenmp-packaging-pipelines.yml b/tools/ci_build/github/azure-pipelines/c-api-noopenmp-packaging-pipelines.yml index 3803333bd880a..aa1a75bfcda45 100644 --- a/tools/ci_build/github/azure-pipelines/c-api-noopenmp-packaging-pipelines.yml +++ b/tools/ci_build/github/azure-pipelines/c-api-noopenmp-packaging-pipelines.yml @@ -204,6 +204,8 @@ stages: CudaVersion: ${{ parameters.CudaVersion }} docker_base_image: ${{ variables.docker_base_image }} linux_trt_version: ${{ variables.linux_trt_version }} + buildJava: true + buildNodejs: true #CUDA without tensorrt - template: templates/win-ci.yml diff --git a/tools/ci_build/github/azure-pipelines/stages/nuget-linux-cuda-packaging-stage.yml b/tools/ci_build/github/azure-pipelines/stages/nuget-linux-cuda-packaging-stage.yml index dbbc9ef27e513..db9bcacbf0754 100644 --- a/tools/ci_build/github/azure-pipelines/stages/nuget-linux-cuda-packaging-stage.yml +++ b/tools/ci_build/github/azure-pipelines/stages/nuget-linux-cuda-packaging-stage.yml @@ -6,6 +6,12 @@ parameters: type: string - name: linux_trt_version type: string +- name: buildJava + type: boolean + default: false +- name: buildNodejs + type: boolean + default: false stages: # Linux CUDA without TensorRT Packaging @@ -66,9 +72,9 @@ stages: parameters: artifactName: 'onnxruntime-linux-x64-tensorrt-$(OnnxRuntimeVersion)' artifactNameNoVersionString: 'onnxruntime-linux-x64-tensorrt' - buildJava: false + buildJava: ${{ parameters.buildJava }} buildJavaOption: '--build_java' - buildNodejs: false + buildNodejs: ${{ parameters.buildNodejs }} buildNodejsOption: '--build_nodejs' CudaVersion: ${{ parameters.CudaVersion }} # Linux CUDA Combined Testing and Publishing