-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial java packaging and publishing pipeline
- Loading branch information
Sayan Shaw
committed
Feb 2, 2024
1 parent
d47a3dd
commit 6339924
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
parameters: | ||
- name: JavaPackaging | ||
displayName: Package and Publish Java Package | ||
type: boolean | ||
default: true | ||
stages: | ||
- stage: Package and Publish Java Package | ||
jobs: | ||
- job: | ||
workspace: | ||
clean: all | ||
pool: 'onnxruntime-Win-CPU-2022' | ||
|
||
steps: | ||
- script: | | ||
./build.sh -DOCOS_BUILD_JAVA=ON | ||
displayName: build the extensions java package | ||
- task: CopyFiles@2 | ||
displayName: 'Copy Java Files to Artifact Staging Directory' | ||
inputs: | ||
SourceFolder: '$(Build.BinariesDirectory)\java\build\libs' | ||
TargetFolder: '$(Build.ArtifactStagingDirectory)' | ||
|
||
- task: PublishPipelineArtifact@1 | ||
displayName: 'Publish Pipeline Artifact' | ||
inputs: | ||
targetPath: '$(Build.ArtifactStagingDirectory)' | ||
artifact: 'onnxruntime-extensions-java-cpu' | ||
|
||
- template: templates/component-governance-component-detection-steps.yml | ||
parameters : | ||
condition : 'succeeded' | ||
|
||
- task: mspremier.PostBuildCleanup.PostBuildCleanup-task.PostBuildCleanup@3 | ||
displayName: 'Clean Agent Directories' | ||
condition: always() |