diff --git a/.pipelines/java_packaging.yml b/.pipelines/java_packaging.yml index a7f89a301..3de18dd11 100644 --- a/.pipelines/java_packaging.yml +++ b/.pipelines/java_packaging.yml @@ -25,7 +25,7 @@ stages: - script: | cd $(Build.ArtifactStagingDirectory) - jar xvf onnxruntime-extensions-0.11.0.jar + jar xvf onnxruntime-extensions-$(cat ./version.txt).jar tree $(Build.ArtifactStagingDirectory) /f displayName: Unpack JAR to sign DLL @@ -65,7 +65,7 @@ stages: - script: | cd $(Build.ArtifactStagingDirectory) - jar xvf onnxruntime-extensions-0.11.0.jar + jar xvf onnxruntime-extensions-$(cat ./version.txt).jar tree $(Build.ArtifactStagingDirectory) /f displayName: Unpack JAR @@ -103,7 +103,7 @@ stages: - script: | cd $(Build.ArtifactStagingDirectory) - jar xvf onnxruntime-extensions-0.11.0.jar + jar xvf onnxruntime-extensions-$(cat ./version.txt).jar displayName: Unpack JAR to view contents - task: DownloadPipelineArtifact@0 @@ -125,8 +125,8 @@ stages: - script: | cd $(Build.ArtifactStagingDirectory) - rm onnxruntime-extensions-0.11.0.jar - jar cmf0 META-INF/MANIFEST.MF onnxruntime-extensions-0.11.0.jar * + rm onnxruntime-extensions-$(cat ./version.txt).jar + jar cmf0 META-INF/MANIFEST.MF onnxruntime-extensions-$(cat ./version.txt).jar * displayName: Combine and pack JAR with Windows, Linux and MacOS Binaries - task: PublishPipelineArtifact@1